public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58114] New: allow turning the warning about deleting a pointer of incomplete type into an error
@ 2013-08-09 17:01 tilman.vogel at web dot de
  2014-04-16 15:28 ` [Bug c++/58114] " fuscated at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: tilman.vogel at web dot de @ 2013-08-09 17:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58114
           Summary: allow turning the warning about deleting a pointer of
                    incomplete type into an error
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tilman.vogel at web dot de

While many warning messages have a way to control their emission and treatment,
e.g. "warning: multi-line comment [-Wcomment]", some warnings do not, in
particular:

warning: possible problem detected in invocation of delete operator: [enabled
by default]
warning: 'value' has incomplete type [enabled by default]

As a consequence of being enabled by default, there does not seem to be an
associated warning class that I could pass to "-Werror=". 

I'd really like to be able to say 
"-Werror=delete-with-incomplete-type"


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-04-17 16:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-09 17:01 [Bug c++/58114] New: allow turning the warning about deleting a pointer of incomplete type into an error tilman.vogel at web dot de
2014-04-16 15:28 ` [Bug c++/58114] " fuscated at gmail dot com
2014-04-16 16:39 ` redi at gcc dot gnu.org
2014-04-16 16:42 ` redi at gcc dot gnu.org
2014-04-17 16:27 ` fuscated at gmail dot com
2014-04-17 16:38 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).