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

SDCC struct declaration compile error #13

Open
zlfn opened this issue Nov 27, 2024 · 0 comments
Open

SDCC struct declaration compile error #13

zlfn opened this issue Nov 27, 2024 · 0 comments
Labels
bug Something isn't working external This issue requires contribute to external tools

Comments

@zlfn
Copy link
Owner

zlfn commented Nov 27, 2024

Due to the following SDCC bugs,
https://sourceforge.net/p/sdcc/bugs/3121/
https://sourceforge.net/p/sdcc/feature-requests/797/

struct need curly braces for initialization. But LLVM-CBE didn't know this.

For now, this error occurs when compiling operations related to Duration.

We can consider making another treesitter layer to detour this.

/home/zlfn/rust-gb/template/out/out.c:608: error 69: struct/union/array '': initialization needs curly braces
...
@zlfn zlfn added bug Something isn't working external This issue requires contribute to external tools labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external This issue requires contribute to external tools
Projects
None yet
Development

No branches or pull requests

1 participant