repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
strong-using-2.C
blob
21e47cba014b39dffc9353eede793106f40c3304
1
// PR c++/13594
2
3
// { dg-do compile }
4
5
namespace foo {
6
namespace foo_impl {
7
class T; // { dg-error "T" "" }
8
}
9
using namespace foo_impl __attribute__((strong));
10
}
11
namespace bar {
12
namespace bar_impl {
13
class T; // { dg-error "T" "" }
14
}
15
using namespace bar_impl __attribute__((strong));
16
using namespace foo;
17
}
18
namespace baz {
19
using namespace foo;
20
using namespace bar;
21
}
22
23
foo::T *t1;
24
bar::T *t2;
25
baz::T *t3; // { dg-error "(ambiguous|expected|extra)" "" }