This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51312] [C++0x] Wrong interpretation of converted constant expressions (for enumerator initializers)


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...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]