]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/ChangeLog
re PR c++/87386 (Error message for static_assert show wrong range)
[thirdparty/gcc.git] / gcc / cp / ChangeLog
index 0da294c6b9b51a1adee8a2c0ef34cf746a3dba7a..9305d530adfd057ced6b65d2f072a8e2e4653271 100644 (file)
@@ -1,5 +1,16 @@
 2018-11-21  Jakub Jelinek  <jakub@redhat.com>
 
+       PR c++/87386
+       * parser.c (cp_parser_primary_expression): Use
+       id_expression.get_location () instead of id_expr_token->location.
+       Adjust the range from id_expr_token->location to
+       id_expressio.get_finish ().
+       (cp_parser_operator_function_id): Pass location of the operator
+       token down to cp_parser_operator.
+       (cp_parser_operator): Add start_loc argument, always construct a
+       location with caret at start_loc and range from start_loc to the
+       finish of the last token.
+
        PR c++/87393
        * parser.c (cp_parser_linkage_specification): Remove useless
        dereference of the consume_open method result.