OSDN Git Service

PR testsuite/25241
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.oliva / template1.C
1 // { dg-do assemble }
2
3 // Copyright (C) 1999, 2003 Free Software Foundation
4
5 // by Alexandre Oliva <oliva@dcc.unicamp.br>
6 // based on bug report by Stefan Wetzel <Stefan_Wetzel@Physik.TU-Muenchen.DE>
7
8
9 template<int P = 0> struct foo {
10   static void bar(double (*)[dim]) {} // { dg-error "'dim' was not declared" } 
11 };
12
13 void bar() {
14   foo<>::bar(0);
15 }