PR c++/29048
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Feb 2008 19:25:28 +0000 (19:25 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Feb 2008 19:25:28 +0000 (19:25 +0000)
        * semantics.c (finish_qualified_id_expr): Avoid duplicate access
        check here, too.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132265 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/g++.dg/lookup/duperr1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/lookup/duperr1.C b/gcc/testsuite/g++.dg/lookup/duperr1.C
new file mode 100644 (file)
index 0000000..cfb348d
--- /dev/null
@@ -0,0 +1,5 @@
+// PR c++/29048
+
+class A { int i; }; // { dg-bogus "is private.*is private" }
+// { dg-error "is private" "" { target *-*-* } 3 }
+class B:public A { B() { A::i=0; } }; // { dg-error "within this context" }