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

fixes #24705; encode static parameters into function names for debugging #24707

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

ringabout
Copy link
Member

@ringabout ringabout commented Feb 21, 2025

fixes #24705

proc xxx(v: static int) =
  echo v
xxx(10)
xxx(20)

They are mangled as _ZN14titaniummangle7xxx_s10E and _ZN14titaniummangle7xxx_s20E with --debugger:native. Static parameters are prefixed with _s to distinguish simple cases like xxx(10, 15) and xxx(101, 5) if xxx supports two static[int] parameters

@ringabout ringabout changed the title fixes #24705; encode static parameters into function names fixes #24705; encode static parameters into function names for debugging Feb 21, 2025
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.

Mangling wrong for static parameters
1 participant