------- Comment #6 from hubicka at gcc dot gnu dot org 2010-09-03 20:12 ------- In testcase from comment #4 the problem is that value in DECL_INITIAL is not in the form acceptable for gimple_min_invariant. Have patch. In testcase from comment #5 we never try to fold it.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45522