Skip to content

[BUG] Default-access not considered by reflection API #721

Closed
@JohelEGP

Description

@JohelEGP

Title: Default-access not considered by reflection API.

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

t: @basic_value type = {
  operator=: (move this) = { }
}
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:
Same as public operator=: (move this) = { } (https://cpp2.godbolt.org/z/eMMYsdMYq).

Actual result and error:
main.cpp2(2,3): error: while applying @basic_value - a value type may not have a non-public destructor.

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