------- Comment #2 from rguenth at gcc dot gnu dot org  2008-03-21 13:01 -------
With that approach we'd get

./cc1plus -quiet -O /tmp/t.ii 
t.C: In function 'int main()':
t.C:2: warning: offset outside bounds of constant string

thus a single warning still with wrong location information (at this point we
cannot do better here).

IMHO the warning belongs in the frontend and the warning code from c_strlen
should be deleted.


-- 


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

Reply via email to