------- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-14 13:48 ------- Reduced testcase: typedef __complex__ double cdouble; inline cdouble to_complex(double r) { cdouble z; __real__ z = r; return z; } cdouble elt_zero() { return to_complex(0.0); } -----
The inliner is remapping z/retval wrong and forgetting to copy if the complex is a aggregate or a scaler. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2005-10-14 13:48:27 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24365