From: jakub Date: Wed, 21 Nov 2018 16:42:34 +0000 (+0000) Subject: PR c++/87393 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e2fa3f9dc1809c0ba5efcb05c2e753675c2cf82;p=thirdparty%2Fgcc.git PR c++/87393 * parser.c (cp_parser_linkage_specification): Remove useless dereference of the consume_open method result. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266347 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index a8e054442d6c..0da294c6b9b5 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2018-11-21 Jakub Jelinek + + PR c++/87393 + * parser.c (cp_parser_linkage_specification): Remove useless + dereference of the consume_open method result. + 2018-11-20 Martin Sebor * cp-tree.h (cp_check_const_attributes): Declare. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 0617f5636cda..09b2b00b438a 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -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 `}'. */