[Bug c++/92158] Missed -Wsign-conversion in C++ when -1 enum converted to unsigned int

2019-11-21 Thread jg at jguk dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92158 --- Comment #10 from Jonny Grant --- C++ 'enum class' gives a nice error for conversion to unsigned. Example: enum class E { a = 1 } ; unsigned i = E::a; I've asked this before, will just write again so it is on a ticket. I understand C++

[Bug c++/92158] Missed -Wsign-conversion in C++ when -1 enum converted to unsigned int

2019-11-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92158 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org