-
-
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
lent parameter: invalid C codegen #16898
Comments
|
In that case I think the compiler should refuse to compile. |
Of course but it's more important for me to unblock you... |
I'm not blocked, I was trying a workaround just in case it worked. |
What is the reasoning behind not allowing |
|
* fix nim-lang#16898 * fix nim-lang#17621 * Update compiler/semtypes.nim
While trying to work around #16897 I got the compiler to generate invalid C with lent input parameters.
Test case
The proc is defined with pointers:
but is called with values
Compiler error
The text was updated successfully, but these errors were encountered: