[Bug 64786] New: c++ parser reports problem at ranged case statement

Roberto Raggi roberto at kdevelop.org
Tue Sep 23 12:22:07 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 23 September 2003 10:30, Gunther Piez wrote:
> switch(foo) {
> case 'b' ... 'r':
> 	something();
> }
I'm afraid that this is a GNU extension, because I can't see
the -> LITERAL '...' LITERAL rule in
http://cholm.home.cern.ch/cholm/misc/c++-grammar/ :)

labeled_statement :
    IDENTIFIER COLON statement 
    CASE constant_expression COLON statement 
    DEFAULT COLON statement 

constant_expression is a conditional expression (?: operator)

ciao robe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/cB5FFprNbhKbO+8RAupAAJ9dbkss07hnDRCJ02jqjgUe2cgMrgCgk3YE
oFlvdJhi5Wy8Etze0UJjC40=
=gQE3
-----END PGP SIGNATURE-----




More information about the KDevelop-devel mailing list