summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/ptrfn3.C
blob: 960085063cf1b493d690386d4322548e22721848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-options "" }
// { dg-do compile }
// C++/30221
// We would ICE while trying to reshape the pointer to
// member function element which is not needed.


class abstract {};
typedef void (abstract::*fptr1) (short & s ) const;
struct s {fptr1 f;};
s array[] =
{
 (fptr1)0
};