-
-
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
Invalid C++ code generation when returning discardable var T (variant of #10241) #17982
Comments
I'm having a go at fixing this thinking this could be a good newbie issue, but maybe it's not? Basing on the previous fix, seems like |
I would fix the C++ code generator instead. |
where's |
|
dont know what to do , |
…se the default definition would be ill-formed (nim-lang#21169) * add test * fix nim-lang#17982 Invalid C++ code generation when returning discardable var T * fix nim-lang#13093 * cpp atomic good example * clearify the condition
…se the default definition would be ill-formed (nim-lang#21169) * add test * fix nim-lang#17982 Invalid C++ code generation when returning discardable var T * fix nim-lang#13093 * cpp atomic good example * clearify the condition
…se the default definition would be ill-formed (nim-lang#21169) * add test * fix nim-lang#17982 Invalid C++ code generation when returning discardable var T * fix nim-lang#13093 * cpp atomic good example * clearify the condition
The issue #10241 still occurs, but with slightly different code.
Example
Modified test case for #10322 has the same issue as reported:
Current Output
Expected Output
no compilation error
Additional Information
The text was updated successfully, but these errors were encountered: