Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred while trying to compile a function with a return value of VOID in debug mode. #1401

Open
chen4s666 opened this issue Feb 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@chen4s666
Copy link

Describe the bug
An error occurred while trying to compile a function with a return value of VOID in debug mode.

To Reproduce
The test uses the ST code as follows.
FUNCTION abc : VOID END_FUNCTION

Add the -g argument and compile it.
The error information is as follows.

thread 'main' panicked at src\codegen\debug.rs:522:18: Type should exist at this stage note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

This was supposed to be introduced in #1103

@chen4s666 chen4s666 added the bug Something isn't working label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant