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 71946 ("asm in toplevel lambda function rejected")


Hi,

Andrew noticed that the reason we reject entities like inline-asm or GNU's statement-expressions in the lambda body is simply that we don't set the parser->in_function_body flag. Thus the below, which appears to work perfectly for that. Tested x86_64-linux.

Thanks, Paolo.

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


Attachment: CL_71946
Description: Text document

Attachment: patch_71946
Description: Text document


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