[Bug 64786] c++ parser reports problem at ranged case statement
Roberto Raggi
roberto at kdevelop.org
Tue Nov 4 16:21:03 UTC 2003
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=64786
roberto at kdevelop.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From roberto at kdevelop.org 2003-11-04 16:20 -------
Subject: kdevelop/lib/cppparser
CVS commit by raggi:
gnu extension: case 'a' ... 'z':
CCMAIL: 64786-done at bugs.kde.org
M +7 -0 parser.cpp 1.23
--- kdevelop/lib/cppparser/parser.cpp #1.22:1.23
@@ -2735,4 +2735,11 @@ bool Parser::parseLabeledStatement( Stat
if( !parseConstantExpression(expr) ){
reportError( i18n("expression expected") );
+ } else if( lex->lookAhead(0) == Token_ellipsis ){
+ lex->nextToken();
+
+ AST::Node expr2;
+ if( !parseConstantExpression(expr2) ){
+ reportError( i18n("expression expected") );
+ }
}
ADVANCE( ':', ":" );
More information about the KDevelop-devel
mailing list