summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash45.C
blob: f138e3d6169fcb9380f6b98576dcbdee7a55171c (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 member" } 
}