[Bug c/61469] language feature: Support for enum underlying type
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 11 10:04:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to nick87720z from comment #0)
> Unlike C++, where type is specified as "enum class type ..."
That's not how C++ does it, the correct syntax is:
enum foo_type : int { foo, bar, baz };
More information about the Gcc-bugs
mailing list