Bug 3059 - compile_string hangs when getting \173
: compile_string hangs when getting \173
Status: RESOLVED FIXED
: Pike
Compiler
: 7.5
: x86 Linux
: P3 (normal) minor
: ---
Assigned To:
:
:
:
  Show dependency treegraph
 
Reported: 2002-04-28 03:33 CET by
Modified: 2002-05-02 14:42 CET (History)
Scrum Prio:
In scrum?: ---
Story included in sprints:
Unplanned in sprints:


Attachments


Description From 2002-04-28 03:44:24 CET
Test case: compile_string("\173");
------- Comment #1 From 2002-05-02 14:08:54 CET -------
"\173" is "{".

Looks like the problem lies in rule 65:

rule 65   def -> modifiers '{' @3 program '}'

The compiler will probably generate an infinite sequence of empty programs.
------- Comment #2 From 2002-05-02 14:42:56 CET -------
Fixed in language.yacc 1.274.
------- Comment #3 From 2002-05-02 14:43:44 CET -------
Pike v7.3 release 41 running Hilfe v3.3 (Incremental Pike Frontend)
> compile_string("{");
-:1:Missing '}'.
Compilation failed.
master.pike:228: master()->compile_string("{",0,0)

Note

You need to log in before you can comment on or make changes to this bug.