http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46677
--- Comment #7 from Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> 2010-11-26 22:34:08 UTC --- (In reply to comment #6) > No. The optimization passes that are remotely related do not work > flow or context sensitive, so we don't know whether the initialization > takes place unless it is a static initializer. What about the case where there is a static initializer and another assignment that assigns the same value as the static initializer?