// { dg-do "run" } // { dg-options "-std=gnu++0x" } template struct bomb; template struct bomb { static const T value = 0; }; template struct bomb { static const T value = v + bomb::value; }; extern "C" void abort(); int main() { bomb b; if (b.value != 10) abort(); return 0; }