* parser.c (cp_parser_sizeof_operand): Remove redundant grokdeclarator.
From-SVN: r265503
This commit is contained in:
parent
8145e6a0cc
commit
b15e280216
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user