https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117257
Bug ID: 117257 Summary: Problem of std::complex<double> and maybe GCC accepts invalid Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: qurong at ios dot ac.cn Target Milestone: --- For this program: ``` #include <complex> int main() { std::complex<double> c({1.0, 0.0}); return 0; } ``` This causes an error in clang, but GCC didn't report the error. Compiler Explorer link: https://godbolt.org/z/4sbb3qEqq