struct FieldDeclarator {
Declarator D;
Action::ExprTy *BitfieldSize;
- FieldDeclarator(DeclSpec &DS) : D(DS, Declarator::MemberContext) {
+ explicit FieldDeclarator(DeclSpec &DS) : D(DS, Declarator::MemberContext) {
BitfieldSize = 0;
}
};
}
// Read struct-declarators until we find the semicolon.
- Fields.push_back(DS);
+ Fields.push_back(FieldDeclarator(DS));
while (1) {
FieldDeclarator &DeclaratorInfo = Fields.back();
ConsumeToken();
// Parse the next declarator.
- Fields.push_back(DS);
+ Fields.push_back(FieldDeclarator(DS));
// Attributes are only allowed on the second declarator.
if (Tok.is(tok::kw___attribute))