summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/parse3.C
blob: bed74f47b8d97003b5be8804196b9512708c6fb8 (plain)
1
2
3
4
5
6
// { dg-do assemble  }
// PRMS Id: 4484 (bug 2)
// Bug: g++ does not grok abstract declarator syntax for method pointers.

template <class T> class A { };
void (A<int>::*p)() = (void (A<int>::*)())0; // { dg-bogus "" } abstract declarator failure