[Bug c++/61543] static_cast<void *>(static_cast<int>(enum_value)) doesn't get an error

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Tue Jun 24 18:37:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61543

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
Looks similar to bug 49171: gcc currently still accepts reinterpret_cast and
equivalent void* casts in constant expressions.


More information about the Gcc-bugs mailing list