]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: fix incorrect parsing of &(T{}) when followed by {
authorRobert Griesemer <gri@golang.org>
Wed, 18 Nov 2015 18:57:27 +0000 (10:57 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 18 Nov 2015 22:25:48 +0000 (22:25 +0000)
commit5500d46914baf26e164ba6dae22ccd343556b5ab
treee12064709dad71a094bda43acf5f7a030d423a14
parent1a111ea2c7bfc9283f04a3be58ae46b339c691a1
cmd/compile/internal/gc: fix incorrect parsing of &(T{}) when followed by {

Handling of &(T{}) assumed that the parser would not introduce ()'s.

Also: Better comments around handling of OPAREN syntax tree optimization.

Fixes #13261.

Change-Id: Ifc5047a0448f5e7d74cd42f6608b87dcc9c2f2fb
Reviewed-on: https://go-review.googlesource.com/17040
Reviewed-by: Chris Manghane <cmang@golang.org>
src/cmd/compile/internal/gc/parser.go
test/fixedbugs/issue13261.go [new file with mode: 0644]