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?

Reply via email to