C++ FE: Show both locations in string literal concatenation error
commitecbea05a82f27e54e4cc17a60a456fed58c51631
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Jun 2016 16:37:28 +0000 (20 16:37 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Jun 2016 16:37:28 +0000 (20 16:37 +0000)
tree5df2315bb993f48933d4efe20cb3866896e28adf
parent8f097cf7a19a76e56246ed465c0169a4f91de8bc
C++ FE: Show both locations in string literal concatenation error

gcc/cp/ChangeLog:
* parser.c (cp_parser_string_literal): Convert non-standard
concatenation error to directly use a rich_location, and
use that to add the location of the first literal to the
diagnostic.

gcc/testsuite/ChangeLog:
* g++.dg/diagnostic/string-literal-concat.C: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237608 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/string-literal-concat.C [new file with mode: 0644]