This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/54928] Infinite output with after ICE with macro


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]