-
Notifications
You must be signed in to change notification settings - Fork 17.3k
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
gccgo: unexpected error on inlined routine calling varargs function #32922
Labels
Milestone
Comments
Change https://golang.org/cl/184918 mentions this issue: |
Change https://golang.org/cl/184919 mentions this issue: |
jpf91
pushed a commit
to D-Programming-GDC/gcc
that referenced
this issue
Jul 4, 2019
Fix compiler buglet: varargs lowering happens before inlinable function bodies are written out to export data, so set the "varargs lowered" flag on call expressions that we import. Fixes golang/go#32922 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/184919 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@273026 138bc75d-0d04-0410-961f-82ee72b054a4
gopherbot
pushed a commit
that referenced
this issue
Jul 8, 2019
Test case that causes incorrect compiler error from gccgo. Updates #32922 Change-Id: I59432a8e8770cf03eda293f6d110c081c18fa88b Reviewed-on: https://go-review.googlesource.com/c/go/+/184918 Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
asiekierka
pushed a commit
to WonderfulToolchain/gcc-ia16
that referenced
this issue
May 16, 2022
Fix compiler buglet: varargs lowering happens before inlinable function bodies are written out to export data, so set the "varargs lowered" flag on call expressions that we import. Fixes golang/go#32922 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/184919 From-SVN: r273026
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?What did you do?
Compile these two packages:
a.go
b.go
using "go install a" then "go build b"
What did you expect to see?
Clean build
What did you see instead?
When compiling "b", this error:
[Note that even though we are compiling b.go, the error is being reported in a.go]. Error is happening during lowering. At the call to go_error_at we are in:
It looks as though the argument type here is nil_type", and the parameter type is string type:
Looking at the export data for the function:
The text was updated successfully, but these errors were encountered: