https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64100
Kai Tietz <ktietz at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #5 from Kai Tietz <ktietz at gcc dot gnu.org> --- (In reply to Jason Merrill from comment #4) > (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? Yes, I will send it today to ML. I will put you CC. > > + if (!expr) > > + { > > + cxx_incomplete_type_error (dtor_name, dtor_type); > > + return error_mark_node; > > + } > > The error needs to be conditional on (complain & tf_error). Ok, I'll add that. > Does the caller handle error_mark_node properly? Yes, I tested it before. By just returning error_mark_node the testcase will be processed completely silently by g++.