PR c++/23639
* semantics.c (qualified_name_lookup_error): Do not complain again
on invalid scope.
* g++.dg/template/ttp5.C: Adjust error markers.
From-SVN: r103664
+2005-08-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/23639
+ * semantics.c (qualified_name_lookup_error): Do not complain again
+ on invalid scope.
+
2005-07-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
Backport:
void
qualified_name_lookup_error (tree scope, tree name)
{
- if (TYPE_P (scope))
+ if (scope == error_mark_node)
+ ; /* We already complained. */
+ else if (TYPE_P (scope))
{
if (!COMPLETE_TYPE_P (scope))
error ("incomplete type `%T' used in nested name specifier", scope);
+2005-08-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/23639
+ * g++.dg/template/ttp5.C: Adjust error markers.
+
2005-08-08 Josh Conner <jconner@apple.com>
PR rtl-optimization/23241
};
template <int n> struct D {
- enum { v = C<A<n>::B>::v }; // { dg-error "mismatch|class template|not a member" }
+ enum { v = C<A<n>::B>::v }; // { dg-error "mismatch|class template" }
};