r237608 - in /trunk/gcc: cp/ChangeLog cp/parser...

dmalcolm@gcc.gnu.org dmalcolm@gcc.gnu.org
Mon Jun 20 16:37:00 GMT 2016


Author: dmalcolm
Date: Mon Jun 20 16:37:28 2016
New Revision: 237608

URL: https://gcc.gnu.org/viewcvs?rev=237608&root=gcc&view=rev
Log:
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.


Added:
    trunk/gcc/testsuite/g++.dg/diagnostic/string-literal-concat.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list