OSDN Git Service

* cp-tree.h (IS_AGGR_TYPE): Include instantiated template template
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.oliva / template1.C
1 // Build don't link:
2
3 // Copyright (C) 1999 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 // crash test - XFAIL *-*-*
9
10 template<int P = 0> struct foo {
11   static void bar(double (*)[dim]) {} // ERROR - dim not declared
12 };
13
14 void bar() {
15   foo<>::bar(0); // ERROR - instantiated from here
16 }