Skip to content

Commit

Permalink
Fix bug with C++11 static_assert
Browse files Browse the repository at this point in the history
When processing a C++11 static_assert, we wish to skip the arguments. However, the `roundCount` is set to 1 despite the fact that the `SkipRound` routine will increment `roundCount` when it's entered. This causes the rest of the class to be skipped entirely.
  • Loading branch information
hansonw committed Sep 16, 2014
1 parent 2eece64 commit 7c257bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scanner.l
Expand Up @@ -2444,7 +2444,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
}
<StaticAssert>"(" {
lastSkipRoundContext = FindMembers;
roundCount=1;
roundCount=0;
BEGIN(SkipRound);
}
<StaticAssert>{BN}+ { lineCount(); }
Expand Down

0 comments on commit 7c257bb

Please sign in to comment.