This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19291] Warning "cannot pass objects of non-POD type" should be an error
- From: "faure at kde dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2005 10:25:02 -0000
- Subject: [Bug c++/19291] Warning "cannot pass objects of non-POD type" should be an error
- References: <bug-19291-3328@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from faure at kde dot org 2005-10-20 10:25 -------
Could a -W option be added so that, if I want gcc to abort on such errors, it
can be asked to do that? (without aborting on all other warnings, of course)
This 'undefined behavior' does crash at runtime, so it is really important to
catch such mistakes at compile time, and simple warnings often go unnoticed...
--
faure at kde dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |faure at kde dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19291