summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/template/crash45.C
blob: f67fd022f63061157779424b60e9e5ae68120061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/26365

struct A {};

namespace N
{
  template<int> void foo();
}

void bar(A *p)
{
  p->N::foo<0>; // { dg-error "not a class member" }
}
OpenPOWER on IntegriCloud