compiler: Don't crash on invalid print call.
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 20 Aug 2015 17:43:55 +0000 (17:43 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 20 Aug 2015 17:43:55 +0000 (17:43 +0000)
commitf4cd6a8d567ba14f7c936e53bf6c65724c6d42b7
tree23b169f2af167f4dd70aba8b1e72e6ae453315a1
parentf999c862ec256fe170b3dac777b7f34df250c35a
compiler: Don't crash on invalid print call.

    When the print builtins are called with no arguments, the compiler
    issues a warning and crashes when trying to produce the backend
    representation for the arguments.

    Fixes golang/go#11526.

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

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