http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47579
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-01 22:54:19 UTC --- I think v.size() should be simply optimized to work on char * pointer differences. Recognizing the optimization opportunity requires to see dereferences of the pointers to deduce their alignment.