This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Go patch committed: Don't error for goto over type or const declaration


This patch to the Go frontend fixes it to not issue an error for a
goto over a type or const declaration.  The frontend is only supposed
to issue such an error for a goto over a var declaration.  The test
case for this is already in the master repository, at
test/fixedbugs/issue8042.go.  It just hasn't been copied into the
gccgo repository yet.  This fixes https://golang.org/issue/19089.
Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu.  Committed
to mainline.

Ian

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]