This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54928] Infinite output with after ICE with macro
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 16 Oct 2012 18:05:52 +0000
- Subject: [Bug c++/54928] Infinite output with after ICE with macro
- Auto-submitted: auto-generated
- References: <bug-54928-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54928
--- Comment #8 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-10-16 18:05:52 UTC ---
Created attachment 28457
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28457
better fix
The code is re-using the diagnostic passed as an argument to produce new
diagnostics, and by saving/reloading values on it. But we actually only need to
modify things once, and if we use a new diagnostic struct, we don't need to
touch the original.
Of course, we should still not print the caret and macro expansion in
internal_error, but that is a bit more complicated.