aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/parse14.C
blob: 20fcc47dbf8ea45ded3d40e92074ccbf012eecf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Bug: g++ decides that A::foo is introducing a constructor declarator.
// Build don't link:

struct A {
  typedef bool foo;
};

A::foo (*bar) ();

struct B {
  A::foo (*bar) ();
};