https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61543
--- Comment #2 from Vaughn Cato <vcato1701 at yahoo dot com> --- 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.