comparison gcc/testsuite/g++.dg/template/error33.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 // PR c++/24791
2
3 template<int> struct A
4 {
5 static int i;
6 A() { ++i; }
7 };
8
9 template<int> int A<0>::i(0); // { dg-error "template" "error" }
10 // { dg-message "note" "note" { target *-*-* } .-1 }
11
12 A<0> a;