Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
error33.C
blob: f71496d177d4c6aa290d28beca26887940537a6b [
file
] [
log
] [
blame
]
// PR c++/24791
template
<int>
struct
A
{
static
int
i
;
A
()
{
++
i
;
}
};
template
<int>
int
A
<
0
>::
i
(
0
);
// { dg-error "template" "error" }
// { dg-message "note" "note" { target *-*-* } .-1 }
A
<
0
>
a
;