3 // by Alexandre Oliva <oliva@dcc.unicamp.br>
4 // based on bug report by Stefan Wetzel <Stefan_Wetzel@Physik.TU-Muenchen.DE>
6 // crash test - XFAIL *-*-*
8 template<int P = 0> struct foo {
9 static void bar(double (*)[dim]) {} // ERROR - dim not declared
13 foo<>::bar(0); // ERROR - instantiated from here