aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/g++.dg/init/ptrfn2.C
blob: 0ca922b9c38fd6e24ee6e56df4c39b46748cd9e8 (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 {};
s array[] =
{
 (fptr1)0 
};// { dg-error "" }