Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
var-templ9.C
blob: 2ffb007addc78bf62e4153220b6c6883416dbaff [
file
] [
log
] [
blame
]
// { dg-do compile { target c++14 } }
struct
X
{
template
<
class
T
>
static
int
x
;
};
int
X
::
x
=
42
;
// { dg-error "template" }
struct
Y
{
static
int
y
;
};
template
<
class
T
>
int
Y
::
y
=
42
;
// { dg-error "template" }