Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vcato1701 at yahoo dot com
Target Milestone: ---
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2)
Command: g++ -c -std=c++14 ice.cpp
Output:
ice.cpp: In member function
ormal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vcato1701 at yahoo dot com
This simple example doesn't get a compile error, but it should, since a
static_cast from an int to a pointer is illegal:
--- BEGIN main.cpp ---
enum {
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.