commit | 8931306389c5b9a19b9b90cc7e263782edcaf579 | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Fri Feb 01 23:10:02 2013 -0500 |
committer | Russ Cox <rsc@golang.org> | Fri Feb 01 23:10:02 2013 -0500 |
tree | fa0faf5f280aded75015df076f0ce70823d311a0 | |
parent | f607c479eabab497b3e7d3dead472a19bd27e063 [diff] |
cmd/gc: reject non-Go constants Expressions involving nil, even if they can be evaluated at compile time, do not count as Go constants and cannot be used in const initializers. Fixes #4673. Fixes #4680. R=ken2 CC=golang-dev https://golang.org/cl/7278043