http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54887
--- Comment #2 from Andreas Arnez <arnez at linux dot vnet.ibm.com> 2012-10-10 17:14:32 UTC --- Right. I've checked that the new upstream gcc with r192285 fixes the problem. Thanks! BTW, while investigating this I wondered why g++ wraps all locals in a lexical block instead of attaching them directly to the subprogram DIE. Is there a particular reason for that?