aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2009-11-03 15:52:30 -0500
committerJason Merrill <jason@gcc.gnu.org>2009-11-03 15:52:30 -0500
commite58793e86f906fe4757d05f778c8909270d60942 (patch)
tree016c327ae668a2ce5063dd751c592754829bd578
parentc5d3d0ba3faadbd4430420218403944f26fa4c83 (diff)
downloadgcc-e58793e86f906fe4757d05f778c8909270d60942.zip
gcc-e58793e86f906fe4757d05f778c8909270d60942.tar.gz
gcc-e58793e86f906fe4757d05f778c8909270d60942.tar.bz2
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
-rw-r--r--gcc/testsuite/ChangeLog3
-rw-r--r--gcc/testsuite/g++.dg/lookup/using22.C17
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 3014090..6ea645a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/g++.dg/lookup/using22.C b/gcc/testsuite/g++.dg/lookup/using22.C
new file mode 100644
index 0000000..2396f9a
--- /dev/null
+++ b/gcc/testsuite/g++.dg/lookup/using22.C
@@ -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];