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

A newly detected buggy behavior with c++ compilers #281

Open
stefanos82 opened this issue Dec 5, 2024 · 2 comments
Open

A newly detected buggy behavior with c++ compilers #281

stefanos82 opened this issue Dec 5, 2024 · 2 comments
Labels

Comments

@stefanos82
Copy link
Contributor

@edubart I have compiled the latest changes after you reported the bug fix in #279 (thank you for that!), I have decided to check all my files, one my one.

Remember this gist of yours, where you demonstrate Celeste version implemented in Nelua?

https://gist.github.com/edubart/a79bf78a249d1fff2b77728c260c7605

Well, this one throws some interesting error messages; seems like behind the scenes, you are using the word this as a parameter name and both GCC (g++) and Clang (clang++) stop the compilation due to the usage of this keyword.

@stefanos82 stefanos82 added the bug label Dec 5, 2024
@edubart
Copy link
Owner

edubart commented Dec 5, 2024

Makes sense, there are a lot of C++ reserved keywords that need to be listed to avoid problems like this at https://github.com/edubart/nelua-lang/blob/master/lualib/nelua/cdefs.lua#L649 . I've listed all keywords relevant C11, but indeed words related to C++ must be added there, will try to do this later.

@stefanos82
Copy link
Contributor Author

No worries, take your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants