https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21057
Graham Frye <graham.frye at hotmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |graham.frye at hotmail dot com --- Comment #5 from Graham Frye <graham.frye at hotmail dot com> --- Created attachment 38343 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38343&action=edit stack misalignment using complex<double> #include <complex> #include <iostream> //changes typedef std::complex<double> Cx; Cx foo(int kojack) { double x=3, y=kojack; return (x, y); } int main(int argc, char *argv[]) { Cx z1(3.0, 4.0); Cx z2(foo(4)); std::cout << "z1=" << z1 << std::endl; std::cout << "z2=" << z2 << std::endl; // compiled with gcc 4.8.4 on lxle // g++ -o bug bug.cpp //output: //z1=(3,4) //z2=(4,0) } ////////////end