[Bug c++/106357] [12/13 Regression] direct-list-initialization of enum class from a variable of another enum class type fails

2022-07-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106357 --- Comment #4 from Jonathan Wakely --- This changed intentionally with r12-85-g5f8aed72e76970 c++: Refine enum direct-list-initialization [CWG2374] This implements the wording changes of CWG2374, which clarifies the wording of

[Bug c++/106357] [12/13 Regression] direct-list-initialization of enum class from a variable of another enum class type fails

2022-07-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106357 --- Comment #3 from Jonathan Wakely --- (In reply to Andrew Pinski from comment #1) > I think the testcase is invalid as the enum does not have "fixed underlying > type" Scoped enums always have a fixed underlying type.

[Bug c++/106357] [12/13 Regression] direct-list-initialization of enum class from a variable of another enum class type fails

2022-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106357 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c++/106357] [12/13 Regression] direct-list-initialization of enum class from a variable of another enum class type fails

2022-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106357 --- Comment #1 from Andrew Pinski --- I think the testcase is invalid as the enum does not have "fixed underlying type"