repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
var-templ9.C
blob
2ffb007addc78bf62e4153220b6c6883416dbaff
1
// { dg-do compile { target c++14 } }
2
3
struct X
4
{
5
template <class T> static int x;
6
};
7
8
int X::x = 42; // { dg-error "template" }
9
10
struct Y
11
{
12
static int y;
13
};
14
15
template <class T> int Y::y = 42; // { dg-error "template" }