repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
strong-using-2.C
blob
f8b5f64fbd24d9c941db2e465d6723e9ce9a6758
1
// PR c++/13594
2
3
// { dg-do compile }
4
5
namespace foo_impl {
6
class T; // { dg-error "T" "" }
7
}
8
namespace bar_impl {
9
class T; // { dg-error "T" "" }
10
}
11
namespace foo {
12
using namespace foo_impl __attribute__((strong));
13
}
14
namespace bar {
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)" "" }