]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: recognize bool(true) as a constant expression
authorMatthew Dempsky <mdempsky@google.com>
Tue, 5 Jan 2016 20:26:55 +0000 (12:26 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 6 Jan 2016 14:38:33 +0000 (14:38 +0000)
commitbe20948e27da60640b7cf27c8ae29214e5a214c2
tree1732a8057f7b680988633dc133d8164883f3e2d2
parente24b2445b4d3fc77034b6ad42c8258d41a4133d1
cmd/compile: recognize bool(true) as a constant expression

Fixes #13821.

Change-Id: I4a28a92d137edac3061537af25ac9d7aba411a66
Reviewed-on: https://go-review.googlesource.com/18262
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/gc/const.go
src/cmd/compile/internal/gc/typecheck.go
test/fixedbugs/issue13821.go [new file with mode: 0644]
test/fixedbugs/issue13821b.go [new file with mode: 0644]