--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gcc/testsuite/g++.dg/template/void7.C Fri Oct 27 22:46:09 2017 +0900 @@ -0,0 +1,8 @@ +//PR c++/28741 + +template<void> struct A // { dg-error "not a valid type" } +{ + static int i; +}; + +A<0> a; // { dg-message "non-type" }