OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/34774
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr24780.C
1
// PR c++/24780
2
// { dg-do compile }
3
4
template<typename S=int>
5
struct Move {
6
Move();
7
static Move<S> const MOVES[2][2];
8
};
9
template<typename S>
10
Move<S> const Move<S>::MOVES[2][2]={};
11
typedef Move<int> const MoveClass;
12
void moves(int x, int y) {
13
&MoveClass::MOVES[x][y];
14
}