-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Description
$ gccgo --version
gccgo (Debian 12.2.0-3) 12.2.0
The following valid Go program:
package main
import "math"
func main() {
f := func(p bool) {
if p {
println("hi")
}
}
go f(true || math.Sqrt(2) > 1)
}
compiles and runs on gc, but is rejected by gccgo
$ gccgo main.go
main.go:11:9: error: too few expressions for struct
11 | go f(true || math.Sqrt(2) > 1)
| ^
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.