Skip to content

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

Closed
@tsoj

Description

@tsoj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions