http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092
--- Comment #25 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- 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. Patch here: http://gcc.gnu.org/ml/gcc-patches/2014-02/msg01039.html I'd already reported the bug: 18253126 posix_memalign writes to first arg on error Rainer