Skip to content
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

2.2.0 rc1 regression with cdecl functions #23858

Closed
ringabout opened this issue Jul 18, 2024 · 0 comments · Fixed by #23859
Closed

2.2.0 rc1 regression with cdecl functions #23858

ringabout opened this issue Jul 18, 2024 · 0 comments · Fixed by #23859

Comments

@ringabout
Copy link
Member

          The one with `cdecl` has nothing to do with templates, simplified:
type Object = object
  a: int
  b: ref int
var x = 0
proc fn(): auto {.cdecl.} =
  inc x
  return Object()
discard fn()
doAssert x == 1

Both a: int and b: ref int need to exist for some reason.

Locally this seems caused by #23409, not sure if there's a reason the bisect bot couldn't figure it out.

Also thanks for fixing the regressions from #23681, I didn't have time to look at them.

Originally posted by @metagn in #23836 (comment)

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 a pull request may close this issue.

1 participant