[Bug c++/64100] A static assert using the the current class in a noexcept test leads to a segfault

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 3 21:56:00 GMT 2014


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

Jason Merrill <jason at gcc dot gnu.org> changed:

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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Kai Tietz from comment #2)
> Following patch fixes this issue for me:

Were you going to send the patch to the list?

> +  if (!expr)
> +    {
> +      cxx_incomplete_type_error (dtor_name, dtor_type);
> +      return error_mark_node;
> +    }

The error needs to be conditional on (complain & tf_error).

Does the caller handle error_mark_node properly?



More information about the Gcc-bugs mailing list