-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
RVO not applied to object with large array #14470
Labels
Comments
var x: ref X
new x
x[] = f() Otherwise the caller would overflow as well. Second, I think Nim is actually the C-array semantics there (so there is a conflict between RVO and C-arrays) |
fixed example - |
Yeah, I noticed this too after I wrote the RFC... ;-) |
narimiran
pushed a commit
that referenced
this issue
Nov 11, 2021
narimiran
pushed a commit
that referenced
this issue
Dec 6, 2021
narimiran
pushed a commit
that referenced
this issue
Dec 6, 2021
PMunch
pushed a commit
to PMunch/Nim
that referenced
this issue
Mar 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
note how huge object is placed on stack, crashing the application on linux (which has an 8mb default stack size)
The text was updated successfully, but these errors were encountered: