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

[BUG] Alias with UFCS function call segfaults cppfront #769

Closed
tsoj opened this issue Oct 21, 2023 · 1 comment · Fixed by #506
Closed

[BUG] Alias with UFCS function call segfaults cppfront #769

tsoj opened this issue Oct 21, 2023 · 1 comment · Fixed by #506
Labels
bug Something isn't working

Comments

@tsoj
Copy link
Contributor

tsoj commented Oct 21, 2023

The following example crashes cppfront (Program received signal SIGSEGV, Segmentation fault.):

enemy_home_rank: uint64 == home_rank.flip();

Cppfront was compiled with g++ cppfront.cpp -g -std=c++20 -o cppfront and clang++ cppfront.cpp -g -std=c++20 -o cppfront.

The problem does not happen when it's a normal assignment or not UFCS, i.e., the following works:

enemy_home_rank: uint64 = home_rank.flip();
enemy_home_rank: uint64 == flip(home_rank);
@tsoj tsoj added the bug Something isn't working label Oct 21, 2023
@JohelEGP
Copy link
Contributor

This is #509, and fixed by #506.

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

Successfully merging a pull request may close this issue.

2 participants