summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/error17.C
blob: 18769ef6bc4dc40ea3c0414a3e2188d476a6ba83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/32870

struct Foo {
  struct Bar;
};

namespace N {
  struct Foo::Bar { }; // { dg-error "in namespace 'N'" }
}

struct Baz {
  struct Foo::Bar { }; // { dg-error "in 'struct Baz'" }
};