compiler: disallow fallthrough in last case of switch.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 26 Jun 2013 22:58:03 +0000 (22:58 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 26 Jun 2013 22:58:03 +0000 (22:58 +0000)
commit33e84ed46b1dd6330abdfe8bcec9444a1f5d2397
tree87581ef83e545999f52828c236d008b1e5d4a340
parenta9826e56fac840619ca8db20926cf48a25057774
compiler: disallow fallthrough in last case of switch.

In spec: A "fallthrough" statement may appear as the last
statement of all but the last clause of an expression switch.

From-SVN: r200440
gcc/go/gofrontend/parse.cc