Bugs item #42, was opened at 2004-07-02 19:22
You can respond by visiting:
http://gforge.lrde.epita.fr/tracker/?func=detail&atid=101&aid=42&am…
Category: c-grammar
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Olivier Gournet (gourne_o)
Assigned to: Valentin David (david_v)
Summary: Dandling else
Initial Comment:
With the context-free restrictions rule on the if-then-else, the following code:
inf f() {
if (1)
;
else if (1)
;
}
don't parse.
sglr:error: Parse error in /tmp/test.c, line 8, col 0: eof unexpected
----------------------------------------------------------------------
You can respond by visiting:
http://gforge.lrde.epita.fr/tracker/?func=detail&atid=101&aid=42&am…