File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ void Parser::tokenRequiredError(int token)
168
168
err += token_name (token_stream.lookAhead ());
169
169
err += " ''" ;
170
170
171
+
171
172
reportError (err);
172
173
}
173
174
@@ -1922,7 +1923,7 @@ bool Parser::parseClassSpecifier(TypeSpecifierAST *&node)
1922
1923
1923
1924
NameAST *name = 0 ;
1924
1925
parseName (name, true );
1925
-
1926
+
1926
1927
BaseClauseAST *bases = 0 ;
1927
1928
1928
1929
if (token_stream.lookAhead () == ' :' )
@@ -3152,11 +3153,14 @@ bool Parser::parseDeclarationInternal(DeclarationAST *&node)
3152
3153
WinDeclSpecAST *winDeclSpec = 0 ;
3153
3154
parseWinDeclSpec (winDeclSpec);
3154
3155
3156
+ const ListNode<std::size_t >* cv = 0 ;
3157
+ parseCvQualify (cv);
3158
+
3155
3159
const ListNode<std::size_t > *funSpec = 0 ;
3156
3160
bool hasFunSpec = parseFunctionSpecifier (funSpec);
3157
3161
3158
- const ListNode<std:: size_t > *cv = 0 ;
3159
- parseCvQualify (cv);
3162
+ if (!cv)
3163
+ parseCvQualify (cv);
3160
3164
3161
3165
const ListNode<std::size_t > *storageSpec = 0 ;
3162
3166
bool hasStorageSpec = parseStorageClassSpecifier (storageSpec);
You can’t perform that action at this time.
0 commit comments