aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.oliva/template1.C
blob: 908a06990a2179d59a4dc8f14006de0793ed0424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble }

// Copyright (C) 1999, 2003 Free Software Foundation

// by Alexandre Oliva <oliva@dcc.unicamp.br>
// based on bug report by Stefan Wetzel <Stefan_Wetzel@Physik.TU-Muenchen.DE>


template<int P = 0> struct foo {
  static void bar(double (*)[dim]) {} // { dg-error "'dim' was not declared|array bound" }
};

void bar() {
  foo<>::bar(0);
}