Skip to content

Commit a30a64d

Browse files
author
Daniel Marjamäki
committed
suppress 'internal error' message about failed template instantiation in release mode
1 parent cd4e355 commit a30a64d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/tokenize.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,7 @@ void Tokenizer::simplifyTemplates()
986986

987987
if (type.size() != types2.size())
988988
{
989+
#ifndef NDEBUG
989990
std::list<ErrorLogger::ErrorMessage::FileLocation> locationList;
990991
ErrorLogger::ErrorMessage::FileLocation loc;
991992
loc.line = tok2->linenr();
@@ -998,6 +999,8 @@ void Tokenizer::simplifyTemplates()
998999
"internalError");
9991000

10001001
_errorLogger->reportErr(errmsg);
1002+
#endif
1003+
10011004
break;
10021005
}
10031006

0 commit comments

Comments
 (0)