This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50810] c++0x-compat does not warn about narrowing conversions
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 23 Oct 2011 21:43:27 +0000
- Subject: [Bug c++/50810] c++0x-compat does not warn about narrowing conversions
- Auto-submitted: auto-generated
- References: <bug-50810-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50810
--- Comment #16 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2011-10-23 21:43:27 UTC ---
(In reply to comment #14)
> Patch needs preliminary clean-ups in gcc/config, etc.
It seems to me that enabling -Wc++0x-compat with -Wall is not a good idea
anyway. I guess many people would not care about upgrading to C++0x for a
while, and they will be pissed off when their builds break. Maybe you should do
it for the release just before -std=c++0x is the default, if such thing is even
planned, but not for 4.7.
(I personally do not understand why this is an obligatory warning in C++0x, it
seems something that many people will consider a nuisance, but that is beyond
the point here).