// PR c++/24780 // { dg-do compile } template struct Move { Move(); static Move const MOVES[2][2]; }; template Move const Move::MOVES[2][2]={}; typedef Move const MoveClass; void moves(int x, int y) { &MoveClass::MOVES[x][y]; }