Permalink
Browse files

Bug 748208 - Bug #313527 regression - Enum in bitfield is not parsed …

…properly.
  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed May 3, 2015
1 parent 530647f commit 7b2d77abb73288bdd48ca04720fd6779e0bf94c2
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/scanner.l
@@ -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);

0 comments on commit 7b2d77a

Please sign in to comment.