summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/template19.C
blob: dc1a67334b528891f3e65c072ce6cb3b9db4d9ec (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/26558
// Origin: Jan Gorski <slimak@yk74.internetdsl.tpnet.pl>
// { dg-do compile }

template<int> struct A
{
  template<int> void foo()
  {
    foo<0>::; // { dg-error "before" }
  }
};