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:
Jason Merrill 2009-11-03 15:52:30 -05:00 committed by Jason Merrill
parent c5d3d0ba3f
commit e58793e86f
2 changed files with 20 additions and 0 deletions

View File

@ -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.

View 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];