[Bug c++/61543] static_cast(static_cast(enum_value)) doesn't get an error

2021-08-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61543 --- Comment #6 from Jonathan Wakely --- (In reply to Andrew Pinski from comment #5) > GCC 8+ rejects the first "// accepted" in the reduced testcase. Since r249083 > GCC 9+ rejects both. Since approximately r267272

[Bug c++/61543] static_cast(static_cast(enum_value)) doesn't get an error

2021-08-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61543 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|---

[Bug c++/61543] static_cast(static_cast(enum_value)) doesn't get an error

2017-05-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61543 Martin Sebor changed: What|Removed |Added Keywords||accepts-invalid Status|UNCONF

[Bug c++/61543] static_cast(static_cast(enum_value)) doesn't get an error

2014-06-24 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61543 --- Comment #3 from Daniel Krügler --- (In reply to Vaughn Cato from comment #2) > I'm not sure it is related to bug 49171. I agree and withdraw my previous comparison. I didn't notice that the result of the conversion is not used within a conte

[Bug c++/61543] static_cast(static_cast(enum_value)) doesn't get an error

2014-06-24 Thread vcato1701 at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61543 --- Comment #2 from Vaughn Cato --- I'm not sure it is related to bug 49171. It seems to be something about enum values specifically. For example, if you change the enum_value to an integer constant, like 5, then you get an error.

[Bug c++/61543] static_cast(static_cast(enum_value)) doesn't get an error

2014-06-24 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61543 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.