public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Go patch committed: Avoid ICE on invalid
@ 2012-03-28 22:26 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2012-03-28 22:26 UTC (permalink / raw)
  To: gcc-patches, gofrontend-dev

[-- Attachment #1: Type: text/plain, Size: 172 bytes --]

This patch from Rémy Oudompheng avoids an ICE on invalid in the Go
frontend.  Bootstrapped on x86_64-unknown-linux-gnu.  Committed to
mainline and 4.7 branch.

Ian


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 444 bytes --]

diff -r c1a1b9b5894b go/expressions.cc
--- a/go/expressions.cc	Wed Mar 28 15:20:12 2012 -0700
+++ b/go/expressions.cc	Wed Mar 28 15:24:08 2012 -0700
@@ -10577,7 +10577,8 @@
 tree
 Interface_field_reference_expression::do_get_tree(Translate_context*)
 {
-  go_unreachable();
+  error_at(this->location(), "reference to method other than calling it");
+  return error_mark_node;
 }
 
 // Dump ast representation for an interface field reference.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-28 22:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-28 22:26 Go patch committed: Avoid ICE on invalid Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).