This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/61469] language feature: Support for enum underlying type
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 Jun 2014 10:04:43 +0000
- Subject: [Bug c/61469] language feature: Support for enum underlying type
- Auto-submitted: auto-generated
- References: <bug-61469-4 at http dot gcc dot gnu dot org/bugzilla/>
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 };