Re: [C++ Patch] PR 71946 ("asm in toplevel lambda function rejected")

2017-10-04 Thread Jason Merrill
OK. On Wed, Oct 4, 2017 at 8:50 AM, Paolo Carlini wrote: > 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 > perfect

[C++ Patch] PR 71946 ("asm in toplevel lambda function rejected")

2017-10-04 Thread Paolo Carlini
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. //