re PR c++/39786 (Qualified name lookup through different numbers of using directives)
PR c++/39786 * g++.dg/lookup/using22.C: New. From-SVN: r153865
This commit is contained in:
parent
c5d3d0ba3f
commit
e58793e86f
@ -1,5 +1,8 @@
|
||||
2009-11-03 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/39786
|
||||
* g++.dg/lookup/using22.C: New.
|
||||
|
||||
PR c++/41876
|
||||
* g++.dg/parse/eh-decl.C: New.
|
||||
|
||||
|
17
gcc/testsuite/g++.dg/lookup/using22.C
Normal file
17
gcc/testsuite/g++.dg/lookup/using22.C
Normal file
@ -0,0 +1,17 @@
|
||||
// PR c++/39786
|
||||
|
||||
namespace A {
|
||||
char (*f(char *p))[13] { return 0; }
|
||||
}
|
||||
|
||||
namespace B {
|
||||
namespace C {
|
||||
char (*f(int p))[42] { return 0; }
|
||||
}
|
||||
using namespace C;
|
||||
}
|
||||
|
||||
using namespace B;
|
||||
using namespace A;
|
||||
|
||||
char x[sizeof *::f(0) == 42 ? 1 : -1];
|
Loading…
Reference in New Issue
Block a user