Menu

#833 Runtime error from compiler when calling a virtual procedure of a specific Type structure

closed
nobody
None
compiler
2022-12-09
2016-08-15
No

A code example inducing the runtime error from compiler:
- The two declaration lines and their order is important.
- The parameter passing mode is important.

Type UDT Extends Object
  Declare Virtual Sub s1 (Byref As Integer)
  Declare Virtual Sub s2 (Byref As Integer = 0)
End Type

Dim As UDT u
u.s2()

For more information, see forum at:
http://www.freebasic.net/forum/viewtopic.php?f=3&t=24957

https://sourceforge.net/p/fbc/bugs/732/
https://sourceforge.net/p/fbc/bugs/725/

Discussion

  • fxm (freebasic.net)

    Other information:
    This bug appeared with version 1.00.0 of fbc.

     
  • Jeff Marshall

    Jeff Marshall - 2022-12-09

    Yes, I believe this was fixed. Or at the very least, changed due to other work on the compiler.

    I think can be closed.

     
  • Jeff Marshall

    Jeff Marshall - 2022-12-09
    • status: open --> closed
     

Log in to post a comment.