[Bug c++/47704] [4.6 regression] [C++0x] Java-related error message when trying to instantiate a strongly typed enum with new

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 15 15:59:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47704

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-15 15:48:20 UTC ---
Caused by http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165935
The problem is that ENUM_FIXED_UNDERLYING_TYPE_P and TYPE_FOR_JAVA use the same
bit.  Now that the patch changed so that it doesn't use TYPE_LANG_FLAG_2 any
longer, can't we use that for ENUM_FIXED_UNDERLYING_TYPE_P instead of
TYPE_LANG_FLAG_3 (aka TYPE_FOR_JAVA)?



More information about the Gcc-bugs mailing list