Skip to content

#1376: Fix non-constructors with 'out this' #1377

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

Merged
merged 3 commits into from
Apr 29, 2025

Conversation

threeifbyair
Copy link
Contributor

As mentioned in #1376, a non-constructor with an 'out this' parameter currently crashes cppfront. This fixes the crash, outlaws non-constructors with 'out this' parameters, and adds a regression test for it.

@hsutter
Copy link
Owner

hsutter commented Apr 29, 2025

Looks good, thanks!

Only one super small thing: Test files that result in errors should be named *-error.cpp2.

I'm just re-running regression tests now to update the results.

Removed the eliminated assert

Re-ran regression tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants