1 parent a83e90d commit 33abf52Copy full SHA for 33abf52
1 file changed
lib/errorlogger.cpp
@@ -261,6 +261,8 @@ void ErrorMessage::calculateWarningHash(const std::list<const Token*>& callstack
261
for (const Token* tok: callstack) {
262
if (!tok)
263
continue;
264
+ if (!tok->scope())
265
+ return; // might be a syntax error before scope info has been set
266
if (tok->scope()->isExecutable()) {
267
// Executable scope => include all tokens in the function => if the
268
// function is changed the hash is changed
0 commit comments