[Bug other/69554] Multi-location diagnostics writes too many lines
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69554 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek --- I thought we already had a PR about this.
[Bug other/69554] Multi-location diagnostics writes too many lines
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69554 --- Comment #1 from Thomas Koenig --- Created attachment 37522 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37522=edit patch to expose the problem
[Bug other/69554] Multi-location diagnostics writes too many lines
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69554 Manuel López-Ibáñez changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Comment #3 from Manuel López-Ibáñez --- (In reply to Thomas Koenig from comment #1) > Created attachment 37522 [details] > patch to expose the problem Does your patch work if you apply it to the latest gcc 5? What does it print?
[Bug other/69554] Multi-location diagnostics writes too many lines
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69554 --- Comment #4 from Manuel López-Ibáñez --- Pre rich locations, it should have looked like # [name]:[locus]: # # some code # 1 # [name]:[locus2]: # # some other code # 2 # Error: Some error at (1) and (2) # or # [name]:[locus]: # # some code and some more code # 1 2 # Error: Some error at (1) and (2) (quoting testsuite/lib/gfortran-dg.exp)