Heterocyclic compounds containing 1,2-oxazole or hydrogenated 1,2-oxazole rings condensed with carbocyclic rings or ring systems