[Bug c++/25152] [3.4/4.0 only] no warning from -Wstrict-aliasing for C++ code

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Dec 8 15:43:00 GMT 2005



------- Comment #9 from pinskia at gcc dot gnu dot org  2005-12-08 15:43 -------
(In reply to comment #8)
> For 4.0, it is IMHO a bad idea to backport this, there are tons of programs
> built with -Werror and if we suddenly start issuing a huge amount of new
> warnings (and this warning has sometimes many false positives), we'd force
> people to change packages a lot.  People are used to do this kind of things
> when porting to a newer major GCC version, but e.g. when upgrading from
> x.y.z to x.y.z+1 it is not expected.

They might not be expecting this.  The warning has very few false warnings.

Actually they are broken (in fact they don't know what hit them in 4.0.x).  In
fact 4.0.x already uses strict aliasing information more than 3.4.0.  I also
have seen 3.4.x use strict aliasing more than 3.3.3 did too.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-12-08 15:43:23
               date|                            |
            Summary|[4.0 only] no warning from -|[3.4/4.0 only] no warning
                   |Wstrict-aliasing for C++    |from -Wstrict-aliasing for
                   |code                        |C++ code
   Target Milestone|4.1.0                       |4.0.3


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



More information about the Gcc-bugs mailing list