The following data member of DiagnosticsEngine bool WarnOnSpellCheck; // Emit warning when spellcheck is initiated. is not initialized in the class constructor. This leads to UB as soon as a client application "forgets" calling method setWarnOnSpellCheck(). Enea.