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]

[C++ Patch] PR 59361


Hi,

in April Andrew figured out that:

"The problem occurs in cp_parser_cast_expression. A term of having the form (T())... cannot be parsed as a cast expression since the the expansion is only applied to a part of the cast expression. If ... follows the closing paren, the expression must be parsed as unary expression."

Today I simplified a bit his patch, moving the CPP_ELLIPSIS handling inside cp_parser_tokens_start_cast_expression. Tested x86_64-linux.

Thanks,
Paolo.

//////////////////////

Attachment: CL_59361
Description: Text document

Attachment: patch_59361
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]