Commit 7c257bb5 authored by hanson.wang's avatar hanson.wang

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.
parent 2eece646
......@@ -2444,7 +2444,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
}
<StaticAssert>"(" {
lastSkipRoundContext = FindMembers;
roundCount=1;
roundCount=0;
BEGIN(SkipRound);
}
<StaticAssert>{BN}+ { lineCount(); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment