compiler: give error for non-int arguments to make
commita065edc5a6e40a93ce4c9f30b13ac018e2a8647f
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Feb 2018 01:46:07 +0000 (5 01:46 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Feb 2018 01:46:07 +0000 (5 01:46 +0000)
tree21ff74b0c1fdd336b5e4670a87171eb39befb6c5
parent5918554cd2da8ca0ca2ad976720316d617f21230
compiler: give error for non-int arguments to make

    This implements a requirement of the language spec.

    While we're here fix the value returned by the type method of a
    builtin call expression to make, although this doesn't seem to make
    any difference anywhere since we lower this to a runtime call before
    the determine_types pass anyhow.

    There is already a test for this error in the master repository:
    test/fixedbugs/issue16949.go. It just hasn't made it into the gccgo
    testsuite yet.

    Fixes golang/go#16949

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257376 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc