re PR c++/87393 (gcc/cp/parser.c:13967:37:Unused Entity Issue: expression result...
authorJakub Jelinek <jakub@redhat.com>
Wed, 21 Nov 2018 16:42:34 +0000 (17:42 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 21 Nov 2018 16:42:34 +0000 (17:42 +0100)
PR c++/87393
* parser.c (cp_parser_linkage_specification): Remove useless
dereference of the consume_open method result.

From-SVN: r266347

gcc/cp/ChangeLog
gcc/cp/parser.c

index a8e054442d6cc5fe1fe01207ac34765520087ef1..0da294c6b9b51a1adee8a2c0ef34cf746a3dba7a 100644 (file)
@@ -1,3 +1,9 @@
+2018-11-21  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/87393
+       * parser.c (cp_parser_linkage_specification): Remove useless
+       dereference of the consume_open method result.
+
 2018-11-20  Martin Sebor  <msebor@redhat.com>
 
        * cp-tree.h (cp_check_const_attributes): Declare.
index 0617f5636cdadd46bccd755755707f1f3e2eb679..09b2b00b438ae1225bff9200020eafff69b6e23d 100644 (file)
@@ -14223,7 +14223,7 @@ cp_parser_linkage_specification (cp_parser* parser)
 
       /* Consume the `{' token.  */
       matching_braces braces;
-      braces.consume_open (parser)->location;
+      braces.consume_open (parser);
       /* Parse the declarations.  */
       cp_parser_declaration_seq_opt (parser);
       /* Look for the closing `}'.  */