This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]