C2: added diagostic for enums