]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: Fix "missing return" error for case T1, T2 in type switches.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Aug 2013 19:01:16 +0000 (19:01 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Aug 2013 19:01:16 +0000 (19:01 +0000)
commit7f55075f4ca6bae4f8fbaa5cf9390e1d2ff349c1
tree4fdcc767cf3efa1928a8fcdd124138d160565ba6
parent14e08599fc071226b123c0da28e7dfe9dd931c73
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201579 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/statements.cc
gcc/testsuite/go.test/test/fixedbugs/bug086.go