https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51312
--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> --- Uhm, it occurs to me that we may also play with moving up the code we already have a few line below handling ENUM_UNDERLYING_TYPE (enumtype): if convert is called first on the X() in e = X() we get a CALL_EXPR from a TARGET_EXPR, which then cxx_constant_value is able to handle...