Closed
Description
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
.