PR c++/67273
[official-gcc.git] / gcc / testsuite / g++.dg / parse / ambig2.C
blob7b000c6201e82788455c4c7865bcf16ba89f153e
1 // { dg-do compile }
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 6 Jan 2003 <nathan@codesourcery.com>
6 // PR 9212. We erroneously accepted an ill-formed
7 // function-declaration, rather than a variable initializer.
10 struct A
12     enum E { e };
13     A(E);
16 struct B
18     enum F { f };
19     B(F);
22 struct C
24     C(A, B, A);
27 C c(A(A::e), B(B::f), A(A::e)); // This is not a function declaration