/cp
2015-02-13 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60894
* decl.c (lookup_and_check_tag): Use strip_using_decl.
/testsuite
2015-02-13 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60894
* g++.dg/lookup/using54.C: New.
From-SVN: r220702
+2015-02-13 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/60894
+ * decl.c (lookup_and_check_tag): Use strip_using_decl.
+
2015-02-13 Jason Merrill <jason@redhat.com>
PR c++/65054
/* First try ordinary name lookup, ignoring hidden class name
injected via friend declaration. */
decl = lookup_name_prefer_type (name, 2);
+ decl = strip_using_decl (decl);
/* If that fails, the name will be placed in the smallest
non-class, non-function-prototype scope according to 3.3.1/5.
We may already have a hidden name declared as friend in this
+2015-02-13 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/60894
+ * g++.dg/lookup/using54.C: New.
+
2015-02-13 Jeff Law <law@redhat.com>
PR bootstrap/65060
2015-02-13 Jeff Law <law@redhat.com>
PR tree-optimization/64823
- gcc.dg/uninit-20.c: New test.
+ * gcc.dg/uninit-20.c: New test.
PR rtl-optimization/47477
* gcc.dg/tree-ssa/pr47477.c: New test.
--- /dev/null
+// PR c++/60894
+
+struct B
+{
+ struct S {};
+};
+
+struct D : B
+{
+ using B::S;
+ void doIt(struct S&);
+};
+
+void D::doIt(struct S&)
+{
+}