aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/strong-using-2.C
blob: 314aa52388a01582dc10ff7afcb492fa0ca5ac14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// PR c++/13594

// { dg-do compile }

namespace foo {
  inline namespace foo_impl {
    class T; // { dg-error "T" "" }
  }
}
namespace bar {
  inline namespace bar_impl {
    class T; // { dg-error "T" "" }
  }
  using namespace foo;
}
namespace baz {
  using namespace foo;
  using namespace bar;
}

foo::T *t1;
bar::T *t2;
baz::T *t3; // { dg-error "(ambiguous|does not name a type)" "" }