]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/template/arg8.C
pt.c (lookup_template_class): push_tinst_level around call to coerce_template_parms.
[gcc.git] / gcc / testsuite / g++.dg / template / arg8.C
1 // Test for a message indicating what template we're trying to convert
2 // arguments for. We can't actually test for it directly because it
3 // doesn't have an associated line number, but we can test for the
4 // "instantiated from here" message that follows.
5
6 template <int I>
7 struct A { };
8
9 int i;
10 A<i> a; // { dg-message "instantiated from here" }
11 // { dg-error "not a valid template argument" "" { target *-*-* } 10 }
12 // { dg-error "invalid type in declaration" "" { target *-*-* } 10 }
This page took 0.034963 seconds and 5 git commands to generate.