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

From-SVN: r265503
This commit is contained in:
Jason Merrill 2018-10-25 15:23:33 -04:00 committed by Jason Merrill
parent 8145e6a0cc
commit b15e280216
2 changed files with 6 additions and 14 deletions

View File

@ -1,3 +1,8 @@
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>
PR c++/86288

View File

@ -28167,20 +28167,7 @@ cp_parser_sizeof_operand (cp_parser* parser, enum rid keyword)
/* If all went well, then we're done. */
if (cp_parser_parse_definitely (parser))
{
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);
}
expr = type;
}
/* If the type-id production did not work out, then we must be