------- Comment #26 from pinskia at gcc dot gnu dot org 2008-04-30 04:13 ------- A simple fix for the patch is to add: && TREE_CODE (TREE_TYPE (TREE_OPERAND (def_rhs, 0))) != ARRAY_TYPE
But note, we still get worse code with the C front-end than with the C++ front-end but that is due to the C front producing &a instead of &a[0] . -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26069