PR c/49859
[official-gcc.git] / gcc / testsuite / g++.dg / parse / struct-as-enum1.C
bloba6cb6b592d6393a9d86d09df913077169fa04812
1 // PR c++/163, PR c++/8595
2 // Origin: <martin@loewis.home.cs.tu-berlin.de>, Mark Leone <mleone@pixar.com>
3 // { dg-do compile }
5 namespace N
7     struct A {};        // { dg-message "previous declaration" }
10 typedef enum N::A B;    // { dg-error "enum|invalid type" }