r255255 - in /trunk: gcc/cp/ChangeLog gcc/cp/pa...

dmalcolm@gcc.gnu.org dmalcolm@gcc.gnu.org
Wed Nov 29 22:07:00 GMT 2017


Author: dmalcolm
Date: Wed Nov 29 22:07:32 2017
New Revision: 255255

URL: https://gcc.gnu.org/viewcvs?rev=255255&root=gcc&view=rev
Log:
C++: improve location of static_assert errors

gcc/cp/ChangeLog:
	* parser.c (cp_parser_unary_expression): Generate a location for
	"noexcept".
	(cp_parser_trait_expr): Generate and return a location_t,
	converting the return type from tree to cp_expr.
	(cp_parser_static_assert): Pass location of the condition to
	finish_static_assert, rather than that of the "static_assert"
	token, where available.

gcc/testsuite/ChangeLog:
	* g++.dg/cpp1y/static_assert3.C: New test case.

libstdc++-v3/ChangeLog:
	* testsuite/20_util/duration/literals/range.cc: Update expected
	line of a static_assert failure.


Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/static_assert3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/testsuite/20_util/duration/literals/range.cc



More information about the Gcc-cvs mailing list