summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/class1.C
blob: 819c48d9c21d2887a022447e726f9bd79ebff3bb (plain)
1
2
3
4
5
6
7
8
9
10
namespace N
{
  struct A;
  int f() {
    struct N::A { // { dg-error "" }
      A() {}
    };
    return 0;
  }
}