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 16128


Hi,

this is another bug essentially already fixed. However, in the audit trail Giovanni Bajo noticed that for the local declarations case we also emit those annoying:

16128.C:16:7: error: expected ‘;’ before ‘a’

and likewise for 'b'. By checking the return value of cp_parser_expression at the beginning of cp_parser_expression_statement we can avoid those and many more in existing testcases (see patch).

Tested x86_64-linux.

Thanks,
Paolo.

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

Attachment: CL_16128
Description: Text document

Attachment: patch_16128
Description: Text document


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