https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91558

--- Comment #3 from Yichen Yan <yichen.yan at inf dot ethz.ch> ---
(In reply to Jonathan Wakely from comment #1)
> (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.

Yes, check_ret_type require its template argument and argument to be 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.

I see. Thanks for your reply.

Reply via email to