This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58114] allow turning the warning about deleting a pointer of incomplete type into an error
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 23 Dec 2016 02:11:18 +0000
- Subject: [Bug c++/58114] allow turning the warning about deleting a pointer of incomplete type into an error
- Auto-submitted: auto-generated
- References: <bug-58114-4@http.gcc.gnu.org/bugzilla/>
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.