summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/pr81247-b.C
blob: b2b035b9baf2729bcf6bb2c63db23cda177405cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/81247 confused error

namespace N { // { dg-message "previous declaration" }
}

template < typename T > class A
{ // { dg-error "redeclared as different" }
  template < T > friend class N;
};

void f ()
{
  A < int > a1;
}