PR c++/11617
* g++.dg/template/lookup2.C: New test.
* g++.dg/template/memclass1.C: Remove instantiated from error.
+ * g++.dg/other/error2.C: Tweak expected errors.
PR c++/11596
* g++.dg/template/defarg3.C: New test.
class B { friend void operator>>(int, class B); };
class N { friend void operator>>(int,class N); };
}
-void N::operator>>(int, N::B) // { dg-error "`B' is not a member of `class N::N'|non-function|primary-expression" "" }
+void N::operator>>(int, N::B) // { dg-error "`B' is not a member of|non-function|primary-expression" "" }
{ } // { dg-error "" "" }