[Bug c++/35652] [4.2/4.3/4.4 Regression] offset warning should be given in the front-end

manu at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Oct 30 22:46:00 GMT 2008



------- Comment #7 from manu at gcc dot gnu dot org  2008-10-30 22:44 -------
The location info seems to be fixed in mainline. Nonetheless, I agree
completely with Richard. This warning belongs in the front-end. Moreover we
fail to diagnose:

const char *s = 'x' + "y";

in both C and C++. Also, this warning does not really requires -O2, so it
should work at -O0 too.


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org
            Summary|[4.2/4.3/4.4 Regression]    |[4.2/4.3/4.4 Regression]
                   |Location information        |offset warning should be
                   |incorrect on string bounds  |given in the front-end
                   |warning                     |


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



More information about the Gcc-bugs mailing list