gccgo: bad "incompatible types" error when comparing untyped expressions #33306
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
gccgo incorrectly reports
error: incompatible types in binary expression
for this test program:The Go spec says:
So
1
and'\002'
should take on the types that they would in the comparison1 == '\002'
, which isrune
/int32
.For comparison, the program prints
true
when compiled with cmd/compile, and it type checks with go/types./cc @ianlancetaylor
The text was updated successfully, but these errors were encountered: