Hello
The following is valid:
===
typedef enum Forward Forward;
===
And this is valid too:
===
enum Forward : int;
typedef enum Forward Forward;
===
Should this be valid?
===
typedef enum Forward : int Forward;
===
Both GCC 4.9 and ICC 14.0/15.0 say it's invalid, but Clang 3.4 accepts it.
This is notable in Apple's own CoreFoundation headers, which uses the macro
CF_ENUM in typedefs like this:
typedef CF_ENUM(long, EnumName) { ... };
--
Thiago Macieira - thiago (AT)
macieira.info - thiago (AT)
kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358