[Bug c++/90784] A loop inside a constexpr function in a constexpr context is not evaluated at compile time

ensadc at mailnesia dot com gcc-bugzilla@gcc.gnu.org
Sat Jun 8 09:59:00 GMT 2019


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

ensadc at mailnesia dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ensadc at mailnesia dot com

--- Comment #1 from ensadc at mailnesia dot com ---
`CTest<char>::length(psz)` is *not* a constexpr context when `psz` names a
parameter.

It might be a missed optimization, but it's not wrong AFAIK.


More information about the Gcc-bugs mailing list