------- Comment #2 from rguenth at gcc dot gnu dot org 2010-09-02 09:12 ------- It's just optimized to always print 10 and the maybe-uninitialized warning code runs too late.
A dup of some other PR. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45493