summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/elab2.C
blob: 6b42aed67a4c3df37a6fe4b47c91748cec1c4757 (plain)
1
2
3
4
5
6
7
struct A {};

struct B
{
  typedef A T; // { dg-error "previous declaration" }
  friend struct T; // { dg-error "" }
};