Skip to content

Commit

Permalink
Bug 748208 - Bug #313527 regression - Enum in bitfield is not parsed …
Browse files Browse the repository at this point in the history
…properly.
  • Loading branch information
Dimitri van Heesch authored and groleo committed May 15, 2015
1 parent 3eed7a5 commit 528bb80
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/scanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -5634,7 +5634,13 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
BEGIN( ClassVar );
}
<ClassVar>":" {
if (current->section==Entry::ENUM_SEC) // enum E:2, see bug 313527,
if (current->section==Entry::VARIABLE_SEC) // enum A B:2, see bug 748208
{
current->bitfields+=":";
current->args.resize(0);
BEGIN(BitFields);
}
else if (current->section==Entry::ENUM_SEC) // enum E:2, see bug 313527,
// or C++11 style enum: 'E : unsigned int {...}'
{
current->args.resize(0);
Expand Down

0 comments on commit 528bb80

Please sign in to comment.