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

2019-06-11 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90784 Richard Biener changed: What|Removed |Added Keywords|wrong-code | Status|UNCONFIRMED

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

2019-06-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90784 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

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

2019-06-08 Thread ensadc at mailnesia dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90784 --- Comment #2 from ensadc at mailnesia dot com --- But curiously, gcc does replace the loop with the constant if `#undef _GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED` is added before `#include `: https://godbolt.org/z/mVdLVP . (Why) is

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

2019-06-08 Thread ensadc at mailnesia dot com
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