Debian Codegraph @

gcc/testsuite/g++.dg/parse/missing-template1.C

raw
1 // PR c++/8736
2 // Origin: Peter Kolloch <[email protected]>
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;
16 }
17
18 void bar()
19 {
20 foo<int>();
21 }