https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91558
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Yichen Yan from comment #0) > Detail: > Constexpr for <complex> is in C++14 if I don't misunderstand. But a lot of > testcases under libstdc++-v3/testsuite/26_numerics/complex/ (e.g. dr844.cc) Are you sure? That test doesn't seem to care about constexpr. > runs with C++11 and check for constexpr (and pass). > > I haven't found some manual or doc explaining that, and wonder if this is a > bug or some feature? The mailing lists are a better place to ask a question like that. Adding constexpr to std::complex was done by r166171 many years ago. I think at the time implementations were allowed to add constexpr as a conforming extension. I don't see a compelling reason to change it now.