Closed
Description
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);