Re: [PATCH] C++ FE: Show both locations in string literal concatenation error

2016-06-18 Thread Jason Merrill
OK. Jason

[PATCH] C++ FE: Show both locations in string literal concatenation error

2016-06-17 Thread David Malcolm
We can use rich_location and the new diagnostic_show_locus to print both locations when complaining about a bogus string concatenation in the C++ FE, giving e.g.: test.C:3:24: error: unsupported non-standard concatenation of string literals const void *s = u8"a" u"b"; ~ ^~~

[PATCH] C++ FE: Show both locations in string literal concatenation error

2015-12-15 Thread David Malcolm
We can use rich_location and the new diagnostic_show_locus to print *both* locations when complaining about a bogus string concatenation in the C++ FE, giving e.g.: test.C:3:24: error: unsupported non-standard concatenation of string literals const void *s = u8"a" u"b"; ~ ^