We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Title: Default-access not considered by reflection API.
Minimal reproducer (https://cpp2.godbolt.org/z/G57h9YWev):
t: @basic_value type = { operator=: (move this) = { } } main: () = { }
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).
public operator=: (move this) = { }
Actual result and error: main.cpp2(2,3): error: while applying @basic_value - a value type may not have a non-public destructor.
main.cpp2(2,3): error: while applying @basic_value - a value type may not have a non-public destructor
The text was updated successfully, but these errors were encountered:
0aef4d0
Good catch, thanks!
Sorry, something went wrong.
Also consider default access for polymorphic_base and basic_value
polymorphic_base
basic_value
5d5993b
Closes hsutter#721
No branches or pull requests
Title: Default-access not considered by reflection API.
Minimal reproducer (https://cpp2.godbolt.org/z/G57h9YWev):
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
.The text was updated successfully, but these errors were encountered: