Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/crash59.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 //PR c++/27329 |
2 | |
3 template<int> struct A // { dg-message "forward declaration" } | |
4 ! // { dg-error "expected unqualified-id" } | |
5 ; | |
6 | |
7 template<int> struct A { int foo(); }; // { dg-error "not a template" } | |
8 | |
9 int i = A<0>().foo(); // { dg-error "not a template|invalid use" } | |
10 | |
11 | |
12 template<int> struct B | |
13 ! // { dg-error "expected unqualified-id" } | |
14 ; | |
15 | |
16 template<int> struct B { static int bar(); }; // { dg-error "not a template" } | |
17 | |
18 int j = B<0>::bar(); // { dg-error "not a template|incomplete type" } | |
19 |