------- Comment #11 from rguenth at gcc dot gnu dot org 2008-11-02 13:02 ------- I'm not sure. Does TREE_STRING_LENGTH in the particular case include the NULL character? Does sizeof(str) include the NULL character?
In principle it is allowed to have a pointer point one after the last element of an array. That IMHO would include the NULL character, so for "foo" pointing to "foo" + 4 would be ok. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35652