Commit b15e2802 by Jason Merrill Committed by Jason Merrill

* parser.c (cp_parser_sizeof_operand): Remove redundant grokdeclarator.

From-SVN: r265503
parent 8145e6a0
2018-10-25 Jason Merrill <jason@redhat.com>
* parser.c (cp_parser_sizeof_operand): Remove redundant use of
grokdeclarator.
2018-10-24 Jakub Jelinek <jakub@redhat.com> 2018-10-24 Jakub Jelinek <jakub@redhat.com>
PR c++/86288 PR c++/86288
......
...@@ -28167,20 +28167,7 @@ cp_parser_sizeof_operand (cp_parser* parser, enum rid keyword) ...@@ -28167,20 +28167,7 @@ cp_parser_sizeof_operand (cp_parser* parser, enum rid keyword)
/* If all went well, then we're done. */ /* If all went well, then we're done. */
if (cp_parser_parse_definitely (parser)) if (cp_parser_parse_definitely (parser))
{ expr = type;
cp_decl_specifier_seq decl_specs;
/* Build a trivial decl-specifier-seq. */
clear_decl_specs (&decl_specs);
decl_specs.type = type;
/* Call grokdeclarator to figure out what type this is. */
expr = grokdeclarator (NULL,
&decl_specs,
TYPENAME,
/*initialized=*/0,
/*attrlist=*/NULL);
}
} }
/* If the type-id production did not work out, then we must be /* If the type-id production did not work out, then we must be
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment