This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61543] static_cast<void *>(static_cast<int>(enum_value)) doesn't get an error
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Jun 2014 18:37:40 +0000
- Subject: [Bug c++/61543] static_cast<void *>(static_cast<int>(enum_value)) doesn't get an error
- Auto-submitted: auto-generated
- References: <bug-61543-4 at http dot gcc dot gnu dot org/bugzilla/>
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.