compiler: Report errors for malformed builtin calls.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 31 Jul 2015 23:17:49 +0000 (23:17 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 31 Jul 2015 23:17:49 +0000 (23:17 +0000)
commit1393eb7608ccdfd5a8a5c234823eab49117427f6
tree5ebe29b68c0615d915eaa32dceaac54475d501a6
parent1fc642f1a780b1d61fa4bd26d7add6ed2d41d6cb
compiler: Report errors for malformed builtin calls.

    Errors reported from malformed builtin calls are handled in a later
    pass than the one in which they are detected.  If a malformed builtin
    call is lowered into an error expression too early, these errors will
    never be reported.

    Fixes golang/go#11561.

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

From-SVN: r226459
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc