Is the mode overwrite here a bug?

60 views
Skip to first unread message

xie cui

unread,
Apr 9, 2026, 9:53:19 AM (2 days ago) Apr 9
to golang-dev
https://github.com/golang/go/blob/9cd372147e0bf75afdb700177b36ef984b533a54/src/cmd/compile/internal/types/fmt.go#L435

mode being overwrite in the iteration has effect on other sub iters.
May be a bug?

Keith Randall

unread,
Apr 9, 2026, 11:15:13 AM (2 days ago) Apr 9
to xie cui, golang-dev
It does look like the tconv call just below should take the original mode, not the modified one.
I'm not sure though, I'm not very familiar with this code.


--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-dev/a2bd4b33-acb9-4b0b-bcde-2fe05e67c828n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages