Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/template/crash55.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
//PR c++/27668 template<typename class T, T = T()> // { dg-error "nested-name-specifier|two or more|class type|incomplete" } // { dg-error "cast" "" { target c++98_only } .-1 } struct A {}; template<int> void foo(A<int>); // { dg-error "template argument 2" "" { target c++98_only } }