diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index 5175c7719..91aad36b4 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -182,10 +182,10 @@ std::string Preprocessor::removeComments(const std::string &str, const std::stri unsigned char ch = str[i]; if (ch & 0x80) { - std::ostringstream errmsg; - errmsg << "The code contains characters that are unhandled. " - << "Neither unicode nor extended ascii are supported. " - << "(line=" << lineno << ", character code=" << std::hex << (int(ch) & 0xff) << ")"; + std::ostringstream errmsg; + errmsg << "The code contains characters that are unhandled. " + << "Neither unicode nor extended ascii are supported. " + << "(line=" << lineno << ", character code=" << std::hex << (int(ch) & 0xff) << ")"; throw std::runtime_error(errmsg.str()); } diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index df433483e..cddd9b24f 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -1714,9 +1714,9 @@ void Tokenizer::simplifyTemplates() locationList.push_back(loc); const ErrorLogger::ErrorMessage errmsg(locationList, - "error", - "Internal error: failed to instantiate template. The checking continues anyway.", - "internalError"); + "information", + "Failed to instantiate template. The checking continues anyway.", + "templateInstantiate"); _errorLogger->reportErr(errmsg); #endif