Skip to content

[BUG] Non-object declaration before this member ICEs #830

Open
@JohelEGP

Description

@JohelEGP

Title: Non-object declaration before this member ICEs.

Minimal reproducer (https://cpp2.godbolt.org/z/Kdbz8h311):

my_time: type = {
  rep: type == cpp2::longdouble;
  this: duration;
}
main: () = { }
Commands:
cppfront main.cpp2
clang++18 -std=c++23 -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -Werror=unused-result -I . main.cpp

Expected result: A well-formed program.

Actual result and error: Segmentation fault (core dumped).

See also:

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