Bugs item #2462777, was opened at 2008-12-23 23:09
Message generated for change (Comment added) made by helly
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=616200&aid=2462777&group_id=96864

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Marcus Börger (helly)
Summary: Infinite loop in generated code with -c

Initial Comment:
The code generated by "re2c -c" contains an infinite loop:

yy0:
        switch (YYGETCONDITION()) {
        case yycX: goto yyc_X;
        }
/* *********************************** */
yyc_X:
        goto yy0;


re2c 0.13.3 on Ubuntu 8.10
stokl...@2pi.dk


----------------------------------------------------------------------

>Comment By: Marcus Börger (helly)
Date: 2008-12-29 17:09

Message:
The provided .re is incomplete and looks like you are expecting re2c to
create an 'error' or 'else' rule which it does not. You can change that by
adding a '[^]' rule. Also your rule ends in a '*' expression which re2c
cannot handle. In fact your issue is not limited to -c usage.

Maybe at some later point re2c could be extended to detect cases like
this. However there is no such plan and given the way re2c works it seems
rather impossible.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=616200&aid=2462777&group_id=96864

------------------------------------------------------------------------------
_______________________________________________
Re2c-general mailing list
Re2c-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/re2c-general

Reply via email to