Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/enum3.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++/17327 |
2 | |
3 enum E { E0, E1 }; | |
4 template <class T,class U> class A {}; | |
5 template <class T> void f(A<E,T>) {} | |
6 // We used to issue a "sorry" message. By using an explicit error | |
7 // message below, we make sure that we will not match "sorry". | |
8 template void f(A<int,E>); // { dg-error "template-id" } |