]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/syntax: more tolerant handling of missing function invocation...
authorRobert Griesemer <gri@golang.org>
Thu, 15 Feb 2018 00:57:28 +0000 (16:57 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 15 Feb 2018 01:48:16 +0000 (01:48 +0000)
commit1a2273874953517cc38f7005e985c91d16ebf33c
tree69a89b29321182d254e18e4082f9dd553ff0df61
parentd3f6d11d845fafe849d33505194b3ea1787e73a8
cmd/compile/internal/syntax: more tolerant handling of missing function invocation in go/defer

Assume that an expression that is not a function call in a defer/go
statement is indeed a function that is just missing its invocation.
Report the error but continue with a sane syntax tree.

Fixes #23586.

Change-Id: Ib45ebac57c83b3e39ae4a1b137ffa291dec5b50d
Reviewed-on: https://go-review.googlesource.com/94156
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/syntax/parser.go
test/fixedbugs/issue23586.go [new file with mode: 0644]