suppress 'internal error' message about failed template instantiation in release mode

This commit is contained in:
Daniel Marjamäki 2009-12-06 11:44:53 +01:00
parent cd4e355f17
commit a30a64d280
1 changed files with 3 additions and 0 deletions

View File

@ -986,6 +986,7 @@ void Tokenizer::simplifyTemplates()
if (type.size() != types2.size())
{
#ifndef NDEBUG
std::list<ErrorLogger::ErrorMessage::FileLocation> locationList;
ErrorLogger::ErrorMessage::FileLocation loc;
loc.line = tok2->linenr();
@ -998,6 +999,8 @@ void Tokenizer::simplifyTemplates()
"internalError");
_errorLogger->reportErr(errmsg);
#endif
break;
}