google-code-export / gambas

Automatically exported from code.google.com/p/gambas
1 stars 0 forks source link

Interpreter stuck in an infinite loop #187

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) Describe the problem.
It is easy to make the interpreter stuck in an infinite loop.

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: 3.0

3) Provide a little project that reproduces the bug or the crash.
Sub no_retval()
End

Public Sub Main()
  Print no_retval() = no_retval()
End

5) Explain clearly how to reproduce the bug or the crash.
Run some code like the one above. Many operators results in the same bug. The 
expected result is that the interpreter throws an error saying "no return 
value" or something similar. Instead, it gets stuck in an infinite loop when it 
wants to find out what types the operands are of.

Original issue reported on code.google.com by emil.len...@gmail.com on 10 Jan 2012 at 4:52

GoogleCodeExporter commented 9 years ago

Original comment by benoit.m...@gmail.com on 11 Jan 2012 at 1:23

GoogleCodeExporter commented 9 years ago
It should be fixed in revision #4395.

Original comment by benoit.m...@gmail.com on 11 Jan 2012 at 1:50

GoogleCodeExporter commented 9 years ago

Original comment by benoit.m...@gmail.com on 11 Jan 2012 at 2:49

GoogleCodeExporter commented 9 years ago

Original comment by benoit.m...@gmail.com on 21 Jan 2012 at 3:25