We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 718cbaf commit 5c5ef43Copy full SHA for 5c5ef43
src/cpp/parse.cpp
@@ -1036,7 +1036,7 @@ bool Parser::rDeclaration(cpp_declarationt &declaration)
1036
std::cout << "Parser::rDeclaration 6 " << t << "\n";
1037
#endif
1038
1039
- if(cv_q.is_not_nil() &&
+ if((cv_q.is_not_nil() || storage_spec.is_auto()) &&
1040
((t==TOK_IDENTIFIER && lex.LookAhead(1)=='=') || t=='*'))
1041
return rConstDeclaration(declaration, storage_spec, member_spec, cv_q);
1042
else
@@ -6610,7 +6610,7 @@ bool Parser::rDeclarationStatement(codet &statement)
6610
std::cout << "Parser::rDeclarationStatement 3 " << t << "\n";
6611
6612
6613
6614
6615
{
6616
#ifdef DEBUG
0 commit comments