Permalink
Browse files

Fix bug with C++11 static_assert

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 7c257bb57562b015b094f109851d914ef232ae2a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scanner.l
View
@@ -2444,7 +2444,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
}
<StaticAssert>"(" {
lastSkipRoundContext = FindMembers;
roundCount=1;
roundCount=0;
BEGIN(SkipRound);
}
<StaticAssert>{BN}+ { lineCount(); }

0 comments on commit 7c257bb

Please sign in to comment.