re PR libstdc++/48760 (std::complex constructor buggy in the face of NaN's)
authorJason Merrill <jason@redhat.com>
Thu, 28 Apr 2011 01:53:53 +0000 (21:53 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 28 Apr 2011 01:53:53 +0000 (21:53 -0400)
commit77a30e9a5f8ffbf06702de86d9b58e075d1ddc71
tree6d7ca1938e69e3ced048dc0b648f5f15cbe83eba
parente79a6b402a7485aa214fc82be04bc5163951aba3
re PR libstdc++/48760 (std::complex constructor buggy in the face of NaN's)

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.

From-SVN: r173058
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/decl.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/complex8.C [new file with mode: 0644]