https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111660
--- Comment #10 from Hwang Joonhyung <envia at envia dot pe.kr> --- (In reply to Andrew Pinski from comment #5) > Note for non-C++11 constexpr, using switch here would most likely be better . Thank you for the comment. It helped me to solve my problem.