compiler: Fix "missing return" error for case T1, T2 in type switches.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 7 Aug 2013 19:01:16 +0000 (19:01 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 7 Aug 2013 19:01:16 +0000 (19:01 +0000)
commit364ed4bac6400aa6645064c6b9e7e518f08dab54
tree4fdcc767cf3efa1928a8fcdd124138d160565ba6
parent5cf6635b26c757412e1a3124c604c9ccb319ff9d
compiler: Fix "missing return" error for case T1, T2 in type switches.

Also change the "missing return" text and report it at the end
of the function, rather than the start, to match the gc
compiler.

From-SVN: r201579
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/statements.cc
gcc/testsuite/go.test/test/fixedbugs/bug086.go