spec: unsafe.Alignof/Sizeof also accept non-variable arguments
Both gc and gccgo permit calls such as unsafe.Sizeof(42). The spec only permits variable arguments. This is a (backward-compatible) spec change reflecting the status quo. Seems preferrable over restricting the compilers. R=r, rsc, iant, ken CC=golang-dev https://golang.org/cl/6494140
Showing
Please
register
or
sign in
to comment