Where the substituents R8 are hydrogen or hydrocarbon radicals containing groups reactive to anhydride groups, more especially hydroxyl or amino groups, the mixing of the individual components (A) and (B) is followed by a spontaneous addition reaction between the acid anhydride groups on the one hand and the groups reactive to acid anhydride groups on the other hand, so that reaction products of (