File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1036,7 +1036,7 @@ bool Parser::rDeclaration(cpp_declarationt &declaration)
1036
1036
std::cout << " Parser::rDeclaration 6 " << t << " \n " ;
1037
1037
#endif
1038
1038
1039
- if (cv_q.is_not_nil () &&
1039
+ if (( cv_q.is_not_nil () || storage_spec. is_auto () ) &&
1040
1040
((t==TOK_IDENTIFIER && lex.LookAhead (1 )==' =' ) || t==' *' ))
1041
1041
return rConstDeclaration (declaration, storage_spec, member_spec, cv_q);
1042
1042
else
@@ -6610,7 +6610,7 @@ bool Parser::rDeclarationStatement(codet &statement)
6610
6610
std::cout << " Parser::rDeclarationStatement 3 " << t << " \n " ;
6611
6611
#endif
6612
6612
6613
- if (cv_q.is_not_nil () &&
6613
+ if (( cv_q.is_not_nil () || storage_spec. is_auto () ) &&
6614
6614
((t==TOK_IDENTIFIER && lex.LookAhead (1 )==' =' ) || t==' *' ))
6615
6615
{
6616
6616
#ifdef DEBUG
You can’t perform that action at this time.
0 commit comments