Re: [PATCH] c++: ICE with delayed noexcept and attribute used [PR97966]

2021-01-19 Thread Jason Merrill via Gcc-patches
On 1/12/21 9:13 PM, Marek Polacek wrote: Another ICE with delayed noexcept parsing, but a bit gnarlier. A function definition marked with __attribute__((used)) ought to be emitted even when it is not referenced in a TU. For a member function template marked with __attribute__((used)) this means

[PATCH] c++: ICE with delayed noexcept and attribute used [PR97966]

2021-01-12 Thread Marek Polacek via Gcc-patches
Another ICE with delayed noexcept parsing, but a bit gnarlier. A function definition marked with __attribute__((used)) ought to be emitted even when it is not referenced in a TU. For a member function template marked with __attribute__((used)) this means that it will be instantiated: in instantia