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
Showing
gcc/testsuite/g++.dg/ext/complex8.C
0 → 100644
Please
register
or
sign in
to comment