https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67314
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- In fact, this is warned by -Wc++-compat. since this is invalid in C++. I think a patch that moves this warning under a new flag -Wassign-enum which is enabled by -Wc++-compat may be accepted, but you need to try. I doubt anyone else is going to implement this for you.