Revert r289150: Correct handling of enum attributes with g++
It is causing issues on some platforms.
Reported by: sbruno (through adrian)