Re: [PATCH] c++: Fix up attribute rollbacks in cp_parser_statement

2021-07-30 Thread Jason Merrill via Gcc-patches
On 7/30/21 6:44 AM, Jakub Jelinek wrote: Hi! During the OpenMP directives using C++ attribute syntax work, I've noticed that cp_parser_statement when parsing various block declarations that do not allow attribute-specifier-seq at the start rolls back the attributes only if std_attrs is non-NULL

[PATCH] c++: Fix up attribute rollbacks in cp_parser_statement

2021-07-30 Thread Jakub Jelinek via Gcc-patches
Hi! During the OpenMP directives using C++ attribute syntax work, I've noticed that cp_parser_statement when parsing various block declarations that do not allow attribute-specifier-seq at the start rolls back the attributes only if std_attrs is non-NULL (i.e. some attributes have been parsed), bu