Skip to content

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

Closed

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

Activity

  1. added
    bugSomething isn't working
    on Oct 21, 2023
  2. JohelEGP commented on Oct 21, 2023

    @JohelEGP
    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

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