enum type not const referenced
main fixes