Skip to content

Commit 78461a9

Browse files
tautschnigDegiorgio
authored andcommitted
Revert "parse C++11 auto declarations"
This reverts commit 5c5ef43.
1 parent 68b9fa8 commit 78461a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cpp/parse.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ bool Parser::rDeclaration(cpp_declarationt &declaration)
14421442
<< "\n";
14431443
#endif
14441444

1445-
if((cv_q.is_not_nil() || storage_spec.is_auto()) &&
1445+
if(cv_q.is_not_nil() &&
14461446
((t==TOK_IDENTIFIER && lex.LookAhead(1)=='=') || t=='*'))
14471447
return rConstDeclaration(declaration, storage_spec, member_spec, cv_q);
14481448
else
@@ -7997,7 +7997,7 @@ bool Parser::rDeclarationStatement(codet &statement)
79977997
<< "Parser::rDeclarationStatement 3 " << t << "\n";
79987998
#endif
79997999

8000-
if((cv_q.is_not_nil() || storage_spec.is_auto()) &&
8000+
if(cv_q.is_not_nil() &&
80018001
((t==TOK_IDENTIFIER && lex.LookAhead(1)=='=') || t=='*'))
80028002
{
80038003
#ifdef DEBUG

0 commit comments

Comments
 (0)