aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/expressions.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2010-12-23 00:40:29 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2010-12-23 00:40:29 +0000
commit8211d03c0b0c23b883e4a2630d2e6e9478b12796 (patch)
tree01e987903d1b8ae9a585b8ccecdc4e1d5dd59cc1 /gcc/go/gofrontend/expressions.h
parentbf0a2edc320dce72dff5a65ed43ae103e95a18bb (diff)
downloadgcc-8211d03c0b0c23b883e4a2630d2e6e9478b12796.zip
gcc-8211d03c0b0c23b883e4a2630d2e6e9478b12796.tar.gz
gcc-8211d03c0b0c23b883e4a2630d2e6e9478b12796.tar.bz2
Don't crash asking for type of invalid const.
From-SVN: r168194
Diffstat (limited to 'gcc/go/gofrontend/expressions.h')
-rw-r--r--gcc/go/gofrontend/expressions.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/go/gofrontend/expressions.h b/gcc/go/gofrontend/expressions.h
index 4780a8b..fe4ade2 100644
--- a/gcc/go/gofrontend/expressions.h
+++ b/gcc/go/gofrontend/expressions.h
@@ -873,8 +873,7 @@ class Parser_expression : public Expression
do_lower(Gogo*, Named_object*, int) = 0;
Type*
- do_type()
- { gcc_unreachable(); }
+ do_type();
void
do_determine_type(const Type_context*)