This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33750] initialization of non-integral member constant not rejected
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2007 15:20:49 -0000
- Subject: [Bug c++/33750] initialization of non-integral member constant not rejected
- References: <bug-33750-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from rguenth at gcc dot gnu dot org 2007-10-12 15:20 -------
What probably adds to the confusion is that C++ defaults to give errors for
pedwarns but has pedantic = 0. But it is only possible to re-set
pedantic-errors
with -fpermissive. So to get plain -pedantic you need -pedantic -fpermissive
for C++ while -pedantic-errors works as expected.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33750