Re: [PATCH] c++: Relax attribute on friend declaration checking [PR100596]

2021-05-19 Thread Jason Merrill via Gcc-patches
On 5/18/21 5:00 PM, Marek Polacek wrote: It turned out that there are codebases that profusely use GNU attributes on friend declarations, so we have to dial back our checking and allow them. And for C++11 attributes let's just warn instead of giving errors. Bootstrapped/regtested on x86_64-pc-l

[PATCH] c++: Relax attribute on friend declaration checking [PR100596]

2021-05-18 Thread Marek Polacek via Gcc-patches
It turned out that there are codebases that profusely use GNU attributes on friend declarations, so we have to dial back our checking and allow them. And for C++11 attributes let's just warn instead of giving errors. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? PR c++/100