[Bug libstdc++/48760] [4.6 / 4.7 Regression] std::complex constructor buggy in the face of NaN's
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 28 01:54:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48760
--- Comment #25 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-28 01:53:56 UTC ---
Author: jason
Date: Thu Apr 28 01:53:53 2011
New Revision: 173058
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173058
Log:
PR libstdc++/48760
Implement list-initialization of _Complex.
* decl.c (reshape_init_r): Allow {real,imag} for _Complex.
(check_initializer): Likewise.
* call.c (build_complex_conv): New.
(implicit_conversion): Call it.
(convert_like_real): Handle it.
* typeck2.c (check_narrowing): Handle it.
Added:
trunk/gcc/testsuite/g++.dg/ext/complex8.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/decl.c
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list