This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/53277] Warning using -Wconversion and -Ox in gcc 4.5, 4.6 and 4.7 but not in previous releases
- 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: Wed, 09 May 2012 13:34:15 +0000
- Subject: [Bug c/53277] Warning using -Wconversion and -Ox in gcc 4.5, 4.6 and 4.7 but not in previous releases
- Auto-submitted: auto-generated
- References: <bug-53277-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53277
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #13 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-05-09 13:34:15 UTC ---
(In reply to comment #12)
> (In reply to comment #10)
> > This is PR51294.
>
> Looks different. Here the compiler complains about casting 0 to size_t.
No, it is not. GCC gives a very different message for implicit constant
conversions.
Looking in more detail, I think the problem may be ((void)s, 0), which is not
recognized as a constant by Wconversion.
> > And there is PR52617.
>
> That one is not a bug, unless you want to do the opposite of what the OP asked
> and use constant propagation to remove the current warning as well.
You are right. Closed.