This is the mail archive of the gcc@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]

Warn implicit enum conversions


Hi,

I'm looking for a type attribute for enums which enables warnings when variables of this enum type are implicitly converted to an integral type like int.

I read the online manual and found nothing I could try. 

I can't imagine, that this demand is so uncommon. Perhaps someone knows of a patch that does something like this? Or alternatively you can point me to some functions in gcc where I can start to try to implement it myself?
Ah yes, I need it for C++.


Any help would be greatly appreciated.


   Joerg


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