compiler: Don't allow builtin function values.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 31 Jul 2015 17:52:38 +0000 (17:52 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 31 Jul 2015 17:52:38 +0000 (17:52 +0000)
commit2e2fc3bd51b507987542acb13e6aa42cf3a94f68
tree0ae30aae68ac2ad7743476883cba3bddde373e20
parentd459fde28f3d37e03d87b221b504a525ddb58665
compiler: Don't allow builtin function values.

    According to the spec, http://golang.org/ref/spec#Built-in_functions:
    "built-in functions do not have standard Go types, so they can only
    appear in call expressions; they cannot be used as function values."

    Fixes golang/go#11570.

    Reviewed-on: https://go-review.googlesource.com/12543

From-SVN: r226448
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/gogo.cc