This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Lee Millward wrote:
> Unfortunately not although I do have a patch which will resolve this. > It needs running through a bootstrap/reg test cycle so if you prefer I > can resubmit an updated patch which will resolve the original PR and > your new testcase once this completes?
Yes, please.
Attached is the updated patch which rejects all the testcases. It adds a check to see if a storage class specifier has already been set on declaration when the typedef is parsed, if one has then multiple_storage_classes_p is set to true like it does in the other part of the patch.
Bootstrapped and regression tested with no new failures on i686-pc-linux-gnu, ok for mainline?
Cheers, Lee.
PR c++/29024 * parser.c (cp_parser_set_storage_class): Set multiple_storage_classes_p for the input decl specifier if a typedef specifier is present. (cp_parser_decl_specifier_seq) <RID_TYPEDEF>: If a storage class specifier has already been set for this declaration, set multiple_storage_classes_p to true on the decl_specs.
PR c++/29024 * g++.dg/parse/typedef8.C: New te
Attachment:
pr29024.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |