PR c++/85262 - ICE with redundant qualification on constructor.
[official-gcc.git] / gcc / testsuite / g++.dg / parse / pr31952-2.C
blobf09bcab1b85206402c222425150db5786a6e594a
1 // PR c++/31952
3 void
4 f0()
6   try
7   {
8   }
9   catch (void *e)  // { dg-message "previously" }
10   {
11     void *e;       // { dg-error "redeclaration" }
12   }
15 void
16 f1()
18   try
19   {
20   }
21   catch (void *e)
22   {
23     {
24       void *e; // Ok, not outermost block.
25     }
26   }
29 void
30 f2()
31 try
34 catch (void *e)  // { dg-message "previously" }
36   void *e;       // { dg-error "redeclaration" }
39 void
40 f3()
41 try
44 catch (void *e)
46   {
47     void *e; // Ok, not outermost block.
48   }