Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/template/crash108.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 // PR c++/50861 | 1 // PR c++/50861 |
2 | 2 |
3 template<class T> struct A {A(int b=k(0));}; // { dg-error "parameter|argument" } | 3 template<class T> struct A {A(int b=k(0));}; // { dg-error "not declared" } |
4 void f(int k){A<int> a;} // // { dg-message "declared" } | 4 // { dg-error "that depend on a template parameter" "" { target *-*-* } .-1 } |
5 // { dg-message "note" "note" { target *-*-* } 3 } | 5 void f(int k){A<int> a;} |