This is the mail archive of the gcc-patches@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] |
Hi,this issue is about some enumeration types which are strictly speaking illegal and we are accepting nonetheless:
enum {}; //-std=c++98 or -std=c++11 enum class {}; //-std=c++11 enum class { x }; //-std=c++11I suppose we want to be less strict about the former thus I'm using a pedwarn instead of an error. Not sure about the best wording of the warning/error messages.
Anyway, luckily only one existing testcase needs adjusting, I thought we had many, in the library too (in fact now I seem to remember I fixed some anonymous enum uses)
Tested x86_64-linux. Thanks, Paolo. ///////////////////////////
Attachment:
CL_54216
Description: Text document
Attachment:
patch_54216
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |