------- Comment #1 from pinskia at gcc dot gnu dot org 2007-07-04 00:52 ------- > The optimization I am suggesting would produce the following [approximate]
is wrong. You have to bind a constant reference to a temp variable and then doing a copy as you do a[0] = b; So the optimization for resize is wrong and incorrect. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32618