[Bug c++/58114] allow turning the warning about deleting a pointer of incomplete type into an error

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 23 02:11:00 GMT 2016


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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Chris Wilson from comment #6)
> I disagree with the assessment of this bug as a duplicate of bug 43452. That
> bug was resolved by the creation of the -Wdelete-incomplete option, upon
> which this bug depends. But this one requests the ability to make this
> warning into a fatal error, i.e. the creation of a -Werror=delete-incomplete
> option, which does not exist yet.

Of course it exists. -Werror=foo is valid for any -Wfoo warning, and it's
trivial to check that it works.


More information about the Gcc-bugs mailing list