------- 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

Reply via email to