Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/crash84.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 // Contributed by Dodji Seketeli <dodji@redhat.com> |
2 // Origin PR c++/35405 | |
3 // { dg-do compile } | |
4 | |
5 template<typename T> struct a | |
6 { | |
7 template <template <typename> class C, typename X, C<X>* =0> | |
8 struct b | |
9 { | |
10 }; | |
11 }; | |
12 | |
13 void | |
14 foo () | |
15 { | |
16 a<int> a1; // OK | |
131 | 17 a<int>::b<a,int> b1; // { dg-error "template argument|convert" } |
111 | 18 } |
19 | |
20 // { dg-prune-output "invalid type in declaration" } |