Go patch committed: Better error message for unknown package name

2022-07-05 Thread Ian Lance Taylor via Gcc-patches
This patch to the Go frontend gives a better error message for an unknown package name, saying "undefined reference" rather than "expected package". This requires updating a test. This fixes https://go.dev/issue/51237. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to main

Go patch committed: Better error message for invalid shifts

2012-12-14 Thread Ian Lance Taylor
My understanding of shifts of constants in Go has improved. This patch more accurately reflects the language spec when it comes to reporting errors for invalid shifts. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ian diff -r 9be532343312 go/expressions.

Go patch committed: Better error message for missing comma

2012-09-26 Thread Ian Lance Taylor
This patch to the Go frontend gives a better error message for a missing comma in a composite literal. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline and 4.7 branch. Ian diff -r f47f5449a663 go/parse.cc --- a/go/parse.cc Mon Sep 24 15:20:45 2012 -0700 +++ b

Go patch committed: Better error message for single- multiple- value

2012-09-21 Thread Ian Lance Taylor
This patch to the Go frontend adds some missing dashes to error messages. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline and 4.7 branch. Ian diff -r fb59d6712068 go/gogo.cc --- a/go/gogo.cc Fri Sep 21 14:06:10 2012 -0700 +++ b/go/gogo.cc Fri Sep 21 15:05:27

Go patch committed: Better error message

2012-09-21 Thread Ian Lance Taylor
This patch to the Go compiler gives a better error message if a method that requires a pointer receiver is invoked with a non-pointer value. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline and 4.7 branch. Ian diff -r cb56a10e8798 go/types.cc --- a/go/types.cc

Go patch committed: Better error message for type switch

2011-03-28 Thread Ian Lance Taylor
This patch to the Go frontend generates a better error message when an invalid variable name is used in a switch statement. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ian diff -r 9f4bdd962616 go/parse.cc --- a/go/parse.cc Mon Mar 28 15:57:46 2011 -0700

Go patch committed: Better error message for missing if condition

2011-03-28 Thread Ian Lance Taylor
This patch to the Go frontend gives a better error message when the condition is omitted from an if statement. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ian diff -r a05deef47b01 go/parse.cc --- a/go/parse.cc Mon Mar 28 15:48:35 2011 -0700 +++ b/go/par

Go patch committed: Better error message for send as value

2011-03-28 Thread Ian Lance Taylor
This patch to gccgo makes it emit better a error message when using the now obsolete syntax of a send expression as a value. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ian diff -r 60aecfe6ad83 go/parse.cc --- a/go/parse.cc Mon Mar 28 14:49:45 2011 -070