suppress 'internal error' message about failed template instantiation in release mode
This commit is contained in:
parent
cd4e355f17
commit
a30a64d280
|
@ -986,6 +986,7 @@ void Tokenizer::simplifyTemplates()
|
||||||
|
|
||||||
if (type.size() != types2.size())
|
if (type.size() != types2.size())
|
||||||
{
|
{
|
||||||
|
#ifndef NDEBUG
|
||||||
std::list<ErrorLogger::ErrorMessage::FileLocation> locationList;
|
std::list<ErrorLogger::ErrorMessage::FileLocation> locationList;
|
||||||
ErrorLogger::ErrorMessage::FileLocation loc;
|
ErrorLogger::ErrorMessage::FileLocation loc;
|
||||||
loc.line = tok2->linenr();
|
loc.line = tok2->linenr();
|
||||||
|
@ -998,6 +999,8 @@ void Tokenizer::simplifyTemplates()
|
||||||
"internalError");
|
"internalError");
|
||||||
|
|
||||||
_errorLogger->reportErr(errmsg);
|
_errorLogger->reportErr(errmsg);
|
||||||
|
#endif
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue