http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50862
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.6.3
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-10-25
13:00:19 UTC ---
The patch isn't sufficient because of this requirement in the standard:
"If the function exits via an exception, lock.lock() shall be called prior to
exiting the function scope."
I'll commit a fix this evening.