* lto-streamer-out.c (output_function): Renumber PHIs.
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / typedef2.C
blobfdadeec63bf143b00ad6bb523c3dfff813703d20
1 // PR c++/46206
3 class Foo1
5   int u, v, w, x;
6   typedef struct Bar { } Bar;
7   virtual void foo(void) {
8     struct Bar bar;
9   }
12 class Foo2
14   int u, v, w;
15   typedef struct Bar { } Bar;
16   Bar bar;
17   virtual void foo(void) {
18     struct Bar bar;
19   }
22 class Foo3
24   int u, v, w;
25   typedef struct Bar { } Bar;
26   int Bar;   // { dg-error "conflicts" }
27   virtual void foo(void) {
28     struct Bar bar;
29   }