This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51312] [C++0x] Wrong interpretation of converted constant expressions (for enumerator initializers)
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 13 Jul 2014 08:54:01 +0000
- Subject: [Bug c++/51312] [C++0x] Wrong interpretation of converted constant expressions (for enumerator initializers)
- Auto-submitted: auto-generated
- References: <bug-51312-4 at http dot gcc dot gnu dot org/bugzilla/>
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...