Debian Codegraph @

gcc/testsuite/g++.dg/parse/tmpl-outside1.C

raw
1 // PR c++/3792
2 // Origin: <[email protected]>
3 // { dg-do compile }
4
5 struct X
6 {
7 template <int i> struct Y {};
8 };
9
10 typedef X::template Y<0> y; // { dg-error "template|invalid" "" { target { ! c++11 } } }