You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking at this the other day. The issue is we setup the ONAME Nodes to represent the parameters with the position information where the identifiers appeared, but then when we call funcargs (and in turn declare), that information gets clobbered with lineno (which happens to be at the last token in the function signature, the int return parameter type).
I think the proper fix is that gc.declare needs to stop clobbering n.Pos, and to just require that callers always setup n.Pos correctly. I think this is almost already the case, but needs a review.
What version of Go are you using (
go version
)?tip (1b9f663)
Does this issue reproduce with the latest release?
yes
What did you do?
It seems that the column numbers for parameters are not accurate. Different parameters may get same line and column numbers, as seen in #23020.
I've come up a simple example:
What did you expect to see?
What did you see instead?
It seems we don't emit column numbers for variables in DWARF -- if we do, that might be also inaccurate.
The text was updated successfully, but these errors were encountered: