[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / forscope1.C
blobcf0cb2c5c9b13c6acec3bfe771427ab14da1b198
1 // { dg-do compile }
2 // { dg-options "-fno-for-scope -Wno-deprecated" }
4 // Copyright (C) 2001 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 4 Sept 2001 <nathan@codesourcery.com>
7 // Bug 4206. We were nesting SCOPE_STMTs badly.
10 struct A
12   A ();
13   ~A ();
17 void Go( )
19   for (int i = 1;;)
20     {
21       switch (1) {
22       default: {}
23       }
24       A d;
25     }
26   i;