http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092
--- Comment #24 from Richard Biener <rguenth at gcc dot gnu.org> --- As the standard doesn't specify that the value is undefined upon error and it only specifies its contents upon successfull completion it implicitely says that it retains the previous value on error. I'd say xfail/skip this on solaris11 and report a bug to them.