Debian Codegraph @

gcc/testsuite/g++.dg/parse/error31.C

raw
1 // { dg-options "-fshow-column -ansi -pedantic-errors -Wno-long-long" }
2 // PR c++/32190
3
4 template<typename T> class foo{ };
5
6 int main() {
7 foo<int> i;
8 // this column number is not accurate yet, but that will make it for now.
9 foo<foo<int> j; // { dg-error "18:template argument 1 is invalid" }
10 int k;
11 int l;
12 foo<int> m;
13 return 0;
14 }