summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/friend43.C
blob: edbed8420d0bf4c304b48ee87071c2391e1cf66a (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/28111
// { dg-do compile }

template<typename> void foo();

template<typename T> struct A
{
  friend void foo<>(typename T::X);  // { dg-error "not a class" }
};

A<int> a;