gccgo: can do bitwise or on fp constants
dvyukov opened this issue · 2 comments
dvyukov commented
gccgo successfully compiles the following program:
package a
const d rune = 1e2|2
gc and go/types reject this program saying:
illegal constant expression: untyped number | untyped number
invalid operation: operator | not defined for 1e2 (untyped float constant 100)
gcc version 6.0.0 2015070 (experimental) (GCC)
dvyukov commented
gopherbot commented
CL https://golang.org/cl/12716 mentions this issue.