Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.oliva/template1.C

raw
1 // { dg-do assemble }
2
3 // Copyright (C) 1999, 2003 Free Software Foundation
4
5 // by Alexandre Oliva <[email protected]>
6 // based on bug report by Stefan Wetzel <[email protected]>
7
8
9 template<int P = 0> struct foo {
10 static void bar(double (*)[dim]) {} // { dg-error "'dim' was not declared|array bound" }
11 };
12
13 void bar() {
14 foo<>::bar(0);
15 }