[Bug c/61469] language feature: Support for enum underlying type

2024-04-30 Thread thomas.mercier.jr at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 --- Comment #17 from Thomas Mercier --- I see, thank you!

[Bug c/61469] language feature: Support for enum underlying type

2024-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 --- Comment #16 from Andrew Pinski --- (In reply to Thomas Mercier from comment #15) > No objection to the error message, but I would have expected a syntax error > for standards earlier than 23 which don't claim to support manually > specifying

[Bug c/61469] language feature: Support for enum underlying type

2024-04-30 Thread thomas.mercier.jr at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 --- Comment #15 from Thomas Mercier --- No objection to the error message, but I would have expected a syntax error for standards earlier than 23 which don't claim to support manually specifying the underlying type for the enum. Like this with

[Bug c/61469] language feature: Support for enum underlying type

2024-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 --- Comment #14 from Andrew Pinski --- (In reply to Thomas Mercier from comment #13) > Was this feature meant to be protected by -std=c23? It doesn't appear to be > in GCC 13: > > /tmp$ cat test.c > enum node_stat_item : unsigned { >

[Bug c/61469] language feature: Support for enum underlying type

2024-04-30 Thread thomas.mercier.jr at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 Thomas Mercier changed: What|Removed |Added CC||thomas.mercier.jr at gmail dot com

[Bug c/61469] language feature: Support for enum underlying type

2022-10-27 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 Joseph S. Myers changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c/61469] language feature: Support for enum underlying type

2022-10-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 --- Comment #11 from CVS Commits --- The master branch has been updated by Joseph Myers : https://gcc.gnu.org/g:e0997c14af5e8bc4d26e28549cbce99364a1601f commit r13-3534-ge0997c14af5e8bc4d26e28549cbce99364a1601f Author: Joseph Myers Date:

[Bug c/61469] language feature: Support for enum underlying type

2022-10-26 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 Joseph S. Myers changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c/61469] language feature: Support for enum underlying type

2022-05-17 Thread joseph at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 --- Comment #9 from joseph at codesourcery dot com --- N2963 is up for discussion in WG14 tomorrow, but there are still significant issues with the wording to resolve.

[Bug c/61469] language feature: Support for enum underlying type

2022-05-17 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org ---

[Bug c/61469] language feature: Support for enum underlying type

2021-12-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c/61469] language feature: Support for enum underlying type

2016-08-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 --- Comment #6 from Marek Polacek --- There is a proposed enhancement for C2X to implement the ability to define the type to be used to represent an enum: .

[Bug c/61469] language feature: Support for enum underlying type

2014-06-11 Thread redi at gcc dot gnu.org
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,

[Bug c/61469] language feature: Support for enum underlying type

2014-06-11 Thread nick87720z at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 --- Comment #2 from nick87720z at gmail dot com --- Didn't know about this form. What i mentioned, i found othere: http://en.wikipedia.org/wiki/Enumerated_type#C.2B.2B

[Bug c/61469] language feature: Support for enum underlying type

2014-06-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 --- Comment #3 from Jonathan Wakely redi at gcc dot gnu.org --- You're confusing two separate things, that's a scoped enumeration which is orthogonal to defining a fixed underlying type for an enumeration.

[Bug c/61469] language feature: Support for enum underlying type

2014-06-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 Marek Polacek mpolacek at gcc dot gnu.org changed: What|Removed |Added CC||mpolacek at

[Bug c/61469] language feature: Support for enum underlying type

2014-06-11 Thread nick87720z at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 --- Comment #5 from nick87720z at gmail dot com --- I remember case, when bigger size, than from int, was needed - it was 64-bit integer, used as flag container. Program, using it, is not my. When i decided to reimplement it as enum, author