Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JohelEGP opened this issue Oct 3, 2023 · 1 comment
Closed

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

JohelEGP opened this issue Oct 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@JohelEGP
Copy link
Contributor

JohelEGP commented Oct 3, 2023

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.

@JohelEGP JohelEGP added the bug Something isn't working label Oct 3, 2023
@hsutter hsutter closed this as completed in 0aef4d0 Oct 8, 2023
@hsutter
Copy link
Owner

hsutter commented Oct 8, 2023

Good catch, thanks!

zaucy pushed a commit to zaucy/cppfront that referenced this issue Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants