This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50611] Error reporting routines re-entered
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Oct 2011 02:24:56 +0000
- Subject: [Bug c++/50611] Error reporting routines re-entered
- Auto-submitted: auto-generated
- References: <bug-50611-4@http.gcc.gnu.org/bugzilla/>
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;
}