OSDN Git Service

PR c++/53549
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / crash8.C
1 // { dg-do compile }
2
3 // Origin: David Robinson <drtr@dial.pipex.com>
4
5 // PR c++/11513: ICE due to incorrect decision whether the tag is template.
6
7 template <typename T>
8 struct bar
9
10   struct foo
11   {
12     int a;
13   };
14
15   template <typename U>
16   int wom(U c)
17   {
18     struct foo b;
19   }
20 };