cmd/compile: wrong line number generated after function call #47260
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No. Tried with both
gotip
&go1.17rc1
.I guess it means the bug got fixed, but submitting this issue just in case.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
This is a result of an issue file against delve at go-delve/delve#2593.
Dlv showed odd behavior where a breakpoint inside of the if-statement was unexpectedly hit.
What did you expect to see?
Expected not to enter the if-statement during debugging.
What did you see instead?
A snapshot of what get we from
disassemble
. 2ndmov
after the call should not have a different line number from the rest of the call-related lines, should it?With @heschi's help, used

GOSSAFUNC=issue2593 go build -gcflags=all="-N -l" issue.go
to get ssa.html, which shows same oddly numberedmov
:ssa.html.zip
@dr2chase @randall77
The text was updated successfully, but these errors were encountered: