* generate specializations only of no error happened so far to prevent further (internal)errors, resolves #40646