You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's a bug, in fact two separate bugs, one a segfault, the other one "code generation error: Function code not generated for 'test'", both need to be investigated and fixed. Given how simple the code is, I think this is a high priority bug, so I put it into our roadmap: #1600. Thanks for reporting it!
Activity
certik commentedon Apr 5, 2023
That's a bug, in fact two separate bugs, one a segfault, the other one "code generation error: Function code not generated for 'test'", both need to be investigated and fixed. Given how simple the code is, I think this is a high priority bug, so I put it into our roadmap: #1600. Thanks for reporting it!
[-]Error : Function code not generated[/-][+]Bug: "x : i32 = test()" fails at top level[/+]Thirumalai-Shaktivel commentedon Apr 6, 2023
I think, I can see two issues here:
1.
The above code doesn't have any statements, so function-call to
_lpython_main_programis not happening2.
Here x is a
global_variableand we are initializing it using a function call. I think that is the reason for the seg_fault.