OSDN Git Service

PR c++/28606
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / parse / missing-template1.C
1 // PR c++/8736
2 // Origin: Peter Kolloch <pkolloch@gmx.ne>
3 // { dg-do compile }
4
5 template <typename T> struct A
6 {
7     template <typename U> struct B
8     {
9         typedef int X;
10     };
11 };
12
13 template <typename T> void foo()
14 {
15     typedef typename A<T>::B<T>::X Y; // { dg-error "" }
16 }
17
18 void bar()
19 {
20     foo<int>();
21 }