Euphoria
Ticket #935:
Translator tail-recursion sometimes results in incorrect C code.
-
Reported by
SDPringle
Oct 08, 2015
See discussion http://openeuphoria.org/forum/128799.wc. This a cross-platform cross-architecture bug.
I have added t_bugmagnet_15.e in change set (721157c2f5ef) which contains a test for this bug.
commenting out Code[Last_pc()] = PROC_TAIL and is_tail = 1 results in correct C code.
Details
1. Comment by SDPringle
May 03, 2016
There is a unit test file for this problem: t_bugmagnet_15.e
2. Comment by jimcbrown
May 03, 2016
Can we give the test a more intuitive name?
3. Comment by SDPringle
May 03, 2016
See: hg:euphoria/rev/490db928fa10
changeset: 6446:490db928fa10 tag: tip user: Shawn David Pringle B.Sc. <shawn.pringle@gmail.com> date: Tue May 03 16:06:33 2016 -0300 files: source/parser.e description:
- removed tail recursion feature. Fixes ticket 935