https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99362
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- [[nodiscard]] on a constructor makes no sense. The reason it warns on arm is that under the hood the EABI requires ctors to return this, while on most other arches constructors don't return anything.