https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97712

--- Comment #4 from Paco Arjonilla <pacoarjonilla at yahoo dot es> ---
(In reply to Jakub Jelinek from comment #3)
> [[nodiscard]] is a function attribute rather than function type attribute,
> so it really doesn't apply to virtual calls (unless it can be devirtualized
> early).

Is it a bug in GCC or in the C++ standard?

Reply via email to