http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50611

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-11 
02:24:56 UTC ---
Hummm. This patchlet avoids the ICE and apparently passes the testsuite
(already past g++.dg), but the amount of diagnostics in mainline seems in any
case much more than in 4.6, in particular the final "In instantiation..."
notes.

I don't know if we want to deal with that, and as part of this PR?!? Jason?

////////////////

Index: pt.c
===================================================================
--- pt.c        (revision 179778)
+++ pt.c        (working copy)
@@ -13026,7 +13026,11 @@
        if (error_msg)
          error (error_msg);
        if (!function_p && TREE_CODE (decl) == IDENTIFIER_NODE)
-         decl = unqualified_name_lookup_error (decl);
+         {
+           if (complain & tf_error)
+             unqualified_name_lookup_error (decl);
+           decl = error_mark_node;
+         }
        return decl;
       }

Reply via email to