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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This doesn't work because we parse the body of the 'func' function only after
handling unparsed noexcepts and NSDMIs.  So finish_function ->
maybe_save_constexpr_fundef hadn't yet been called when we evaluate the
constant-expression in the noexcept, and so we don't have the body of the
constexpr function to evaluate.

Reply via email to