https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91426

--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
(In reply to Thomas Koenig from comment #2)
> Having had occasion to look at a few hundred multi-line error messages
> today, I have now changed my mind on what I would consider best :-)
> 
> I now think different colors for primary and secondary error message
> (if we stick with a maximum of two) is actually quite good.
> 
> What would help a lot if the markers (1) and (2) in
> 
> Error: Duplicate statement label 10 at (1) and (2)
> 
> were also colored the same as the two markers under the
> text of the program.
> 
> Would this be doable / would others also find that useful?

The patch I've just attached ought to do this (though it's just a crude
prototype - it only works for the gfc_error_opt case).

With that caveat, how does the output look?

Reply via email to