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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |diagnostic
   Last reconfirmed|                            |2021-07-08
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  Now, having EH as the only effect of a const function is of course
quite some obfuscation ;)

The first part is likely difficult since 'throw' appears as call to
__cxa_throw () to the IPA pure/const pass plus there's a
__cxa_allocate_exception call.  So our present implementation of EH makes
the function not actually 'const' - still a user can declare it 'const'.

Reply via email to