// { dg-do assemble } // Copyright (C) 1999, 2003 Free Software Foundation // by Alexandre Oliva // based on bug report by Stefan Wetzel template struct foo { static void bar(double (*)[dim]) {} // { dg-error "'dim' was not declared|array bound" } }; void bar() { foo<>::bar(0); }