diff options
author | David Malcolm <dmalcolm@redhat.com> | 2017-11-29 22:07:32 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2017-11-29 22:07:32 +0000 |
commit | 591996bad79b7b109bb01fba69b1c7acc054e287 (patch) | |
tree | 403022637b8440b706dd47ce33c9f34f8c21a943 /gcc/combine.c | |
parent | cc6fe784486b77d96bd4cb9cb1d6556c1d5480fb (diff) | |
download | gcc-591996bad79b7b109bb01fba69b1c7acc054e287.zip gcc-591996bad79b7b109bb01fba69b1c7acc054e287.tar.gz gcc-591996bad79b7b109bb01fba69b1c7acc054e287.tar.bz2 |
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.
From-SVN: r255255
Diffstat (limited to 'gcc/combine.c')
0 files changed, 0 insertions, 0 deletions