Compounds of the formula in which A 1 is hydrogen, halogen or cyano, A 2 is hydrogen, G 1 is N or C-A 1, G 2 is a radical from the group of in which the arrow marks the bond to the adjacent ring, R 1 is hydrogen or C 1 -C 4 -alkyl, B is hydrogen, G 3 is the radical in which the arrow marks the bond to G 2, X is oxygen, n is 2, R 2 is a radical from the group of hydrogen, C 1 -C 4 -alkyl and C 1 -C 4 -alkoxy-C 1 -C 4 -alkyl, optionally halogen-substituted C 1 -C 4 -alkylcarbonyl, optionally halogen-substituted C 1 -C 4 -alkoxycarbonyl, optionally halogen-, C 1 -C 4 -alkyl-, C 1 -C 4 -alkoxy-, C 1 -C 4 -haloalkyl- and cyano-substituted C 3 -C 6 -cycloalkylcarbonyl, or a cation, for example a mono- or divalent metal ion or an optionally C 1 -C 4 -alkyl- or aryl-C 1 -C 4 -alkyl-substituted ammonium ion, R 7 is a radical from the group of in each case optionally halogen-, C 1 -C 4 -alkoxy-, C 1 -C 4 -haloalkoxy-, C 1 -C 4 -alkylthio-, C 1 -C 4 -haloalkylthio-, C 1 -C 4 -alkylsulphinyl-, C 1 -C 4 -haloalkylsulphinyl-, C 1 -C 4 -alkylsulphonyl- and C 1 -C 4 -haloalkylsulphonyl-substituted C 1 -C 4 -alkyl, C 2 -C 4 -alkenyl, C 2 -C 4 -alkynyl, in each case optionally halogen-, C 1 -C 4 -alkyl-, C 1 -C 4 -haloalkyl-, C 1 -C 4 -alkoxy-, C 1 -C 4 -haloalkoxy-substituted C 3 -C 6 -cycloalkyl, C 3 -C 6 -cycloalkyl-C 1 -C 4 -alkyl and C 3 -C 4 -cycloalkenyl, in which the rings may contain at least one heteroatom from the group of sulphur, oxygen (where oxygen atoms must not be immediately adjacent) and nitrogen, in each case optionally halogen-, cyano- (including in the alkyl moiety), nitro-, C 1 -C 4 -alkyl-, C 1 -C 4 -haloalkyl-, C 3 -C 6 -cycloalkyl-, C 1 -C 4 -alkoxy-, C 1 -C 4 -haloalkoxy-, C 1 -C 4 -alkylthio-, C 1 -C 4 -haloalkylthio-, C 1 -C 4 -alkylsulphinyl-, C 1 -C 4 -haloalkylsulphinyl-, C 1 -C 4 -alkylsulphonyl-, C 1 -C 4 -haloalkylsulphonyl-, amino-, C 1 -C 4 -alkylamino-, di (C 1 -C 4 -alkyl)amino-, C 1 -C 4 -alkylcarbonylamino-, C 1 -C 4 -alkoxycarbonylamino-, C 1 -C 4 -alkoxy-C 1 -C 4 -alkyl-, C 1 -C 4 -haloalkoxy-C 1 -C 4 -alkyl-, C 2 -C 4 -alkenyl-, C 2 -C 4 -alkynyl-, C 3 -C 6 -cycloalkyl-C 1 -C 4 -alkyl-, C 1 -C 4 -alkylcarbonyl-, C 1 -C 4 -alkoxycarbonyl- or aminocarbonyl-substituted aryl, heteroaryl, aryl-C 1 -C 4 -alkyl and heteroaryl-C 1 -C 4 -alkyl, or NR'R" in which R' and R" are each independently a radical from the group of hydrogen and C 1 -C 4 -alkyl, in which halogen is selected from the group of fluorine, chlorine, bromine and iodine, aryl (including as part of a larger unit, for example arylalkyl) is selected from the group of phenyl, naphthyl, anthryl, phenanthrenyl, and hetaryl (including as part of a larger unit, for example hetarylalkyl) is selected from the group of pyrimidyl, oxadiazolyl, oxazolyl, pyrazinyl, imidazolyl, thiazolyl and furanyl, and salts and N-oxides of the compounds of the formula. A 1 is hydrogen, halogen or cyano, A 2 is hydrogen, G 1 is N or C-A 1, G 2 is a radical from the group of in which the arrow marks the bond to the adjacent ring, R 1 is hydrogen or C 1 -C 4 -alkyl, B is hydrogen, G 3 is the radical in which the arrow marks the bond to G 2, X is oxygen, n is 2, R 2 is a radical from the group of hydrogen, C 1 -C 4 -alkyl and C 1 -C 4 -alkoxy-C 1 -C 4 -alkyl, optionally halogen-substituted C 1 -C 4 -alkylcarbonyl, optionally halogen-substituted C 1 -C 4 -alkoxycarbonyl, optionally halogen-, C 1 -C 4 -alkyl-, C 1 -C 4 -alkoxy-, C 1 -C 4 -haloalkyl- and cyano-substituted C 3 -C 6 -cycloalkylcarbonyl, or a cation, for example a mono- or divalent metal ion or an optionally C 1 -C 4 -alkyl- or aryl-C 1 -C 4 -alkyl-substituted ammonium ion, R 7 is a radical from the group of in each case optionally halogen-, C 1 -C 4 -alkoxy-, C 1 -C 4 -haloalkoxy-, C 1 -C 4 -alkylthio-, C 1 -C 4 -haloalkylthio-, C 1 -C 4 -alkylsulphinyl-, C 1 -C 4 -haloalkylsulphinyl-, C 1 -C 4 -alkylsulphonyl- and C 1 -C 4 -haloalkylsulphonyl-substituted C 1 -C 4 -alkyl, C 2 -C 4 -alkenyl, C 2 -C 4 -alkynyl, in each case optionally halogen-, C 1 -C 4 -alkyl-, C 1 -C 4 -haloalkyl-, C 1 -C 4 -alkoxy-, C 1 -C 4 -haloalkoxy-substituted C 3 -C 6 -cycloalkyl, C 3 -C 6 -cycloalkyl-C 1 -C 4 -alkyl and C 3 -C 4 -cycloalkenyl, in which the rings may contain at least one heteroatom from the group of sulphur, oxygen (where oxygen atoms must not be immediately adjacent) and nitrogen, in each case optionally halogen-, cyano- (including in the alkyl moiety), nitro-, C 1 -C 4 -alkyl-, C 1 -C 4 -haloalkyl-, C 3 -C 6 -cycloalkyl-, C 1 -C 4 -alkoxy-, C 1 -C 4 -haloalkoxy-, C 1 -C 4 -alkylthio-, C 1 -C 4 -haloalkylthio-, C 1 -C 4 -alkylsulphinyl-, C 1 -C 4 -haloalkylsulphinyl-, C 1 -C 4 -alkylsulphonyl-, C 1 -C 4 -haloalkylsulphonyl-, amino-, C 1 -C 4 -alkylamino-, di (C 1 -C 4 -alkyl)amino-, C 1 -C 4 -alkylcarbonylamino-, C 1 -C 4 -alkoxycarbonylamino-, C 1 -C 4 -alkoxy-C 1 -C 4 -alkyl-, C 1 -C 4 -haloalkoxy-C 1 -C 4 -alkyl-, C 2 -C 4 -alkenyl-, C 2 -C 4 -alkynyl-, C 3 -C 6 -cycloalkyl-C 1 -C 4 -alkyl-, C 1 -C 4 -alkylcarbonyl-, C 1 -C 4 -alkoxycarbonyl- or aminocarbonyl-substituted aryl, heteroaryl, aryl-C 1 -C 4 -alkyl and heteroaryl-C 1 -C 4 -alkyl, or NR'R" in which R' and R" are each independently a radical from the group of hydrogen and C 1 -C 4 -alkyl,