On 9 May 2012 15:04, Jason Merrill <ja...@redhat.com> wrote: > On 04/29/2012 06:28 AM, Manuel López-Ibáńez wrote: >> >> A new version using unsigned int for the flag type. It also adds >> another use in the C FE. >> >> I am not asking for approval, only whether this >> approach/implementation is the way to go. > > > That looks good. I would still also adjust the caret printer to avoid > printing the same caret twice in a row even when we haven't updated the > caller.
I could implement that by storing the last location in the diagnostic_context or using a static location_t in diagnostic_show_locus. What is your preference? Cheers, Manuel.