Improving error recovery for misplace members in enums. Reviewed-by: vromero
Reviewed-by: darcy, ihse