compiler: call error_statement for fallthrough in last case
commit03c11029b43c73e8a365c8c266e8817ebe8453b7
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Sep 2017 21:25:17 +0000 (15 21:25 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Sep 2017 21:25:17 +0000 (15 21:25 +0000)
treedc50a2e5e02ec3272517b470a35702f0f3385728
parent96bf2948e4a8fc6f288016132f2486bdc08f5712
compiler: call error_statement for fallthrough in last case

    It is possible to do this check in backend, by walking the
    block and check whether the last statement is a goto. But it
    seems easier to do it in the frontend, where it can simply use
    is_fallthrough.

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

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