C++ FE: Show both locations in string literal concatenation error
commit842107e43de51855cd5870be1a67bc4eabca4a25
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 20 Jun 2016 16:37:28 +0000 (20 16:37 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 20 Jun 2016 16:37:28 +0000 (20 16:37 +0000)
tree5df2315bb993f48933d4efe20cb3866896e28adf
parent9ee6540a77ee11d1aa70d86e08642406fb150fe0
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.

From-SVN: r237608
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/string-literal-concat.C [new file with mode: 0644]