compiler: Check for EOF in malformed signatures.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 11 Aug 2015 23:11:36 +0000 (23:11 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 11 Aug 2015 23:11:36 +0000 (23:11 +0000)
commit7a8dfe707bb29938b5109614d49623847fba81f1
tree7ecec73827de5c2657b2d50e39d8e48c9007b588
parent5d44e40bb5ddc05b604a02e1b4f56ced179ac95b
compiler: Check for EOF in malformed signatures.

    When parsing a malformed function declaration with invalid parameters,
    gccgo would infinitely loop looking for the end of the function
    declaration.

    Fixes golang/go#11530, golang/go#11531.

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

From-SVN: r226795
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/parse.cc