[cfe-dev] 64-bit enum
Daniel Marjamäki via cfe-dev
cfe-dev at lists.llvm.org
Wed Apr 5 10:17:32 PDT 2017
The C standard says that enum type is 'int':
"The expression that defines the value of an enumeration constant shall be an integer constant expression that has a value representable as an int."
In C++11 you can specify the type.
..................................................................................................................
Daniel Marjamäki Senior Engineer
Evidente ES East AB Warfvinges väg 34 SE-112 51 Stockholm Sweden
Mobile: +46 (0)709 12 42 62
E-mail: Daniel.Marjamaki at evidente.se
www.evidente.se
________________________________________
From: cfe-dev [cfe-dev-bounces at lists.llvm.org] on behalf of Marcus Johnson via cfe-dev [cfe-dev at lists.llvm.org]
Sent: 05 April 2017 05:08
To: cfe-dev at lists.llvm.org
Subject: [cfe-dev] 64-bit enum
Can we make enums 64 bit at least when compiling for 64 bit platforms? I don't understand why they're limited to (SIGNED) 32 bit, it just doesn't make any sense.
More information about the cfe-dev
mailing list