From cad51bedb53a97dfce1915ff32d95e4aacf5bc93 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 14 Dec 2010 22:58:23 +0000 Subject: Don't crash on invalid parameters/results. From-SVN: r167820 --- gcc/go/gofrontend/parse.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/go/gofrontend/parse.h') diff --git a/gcc/go/gofrontend/parse.h b/gcc/go/gofrontend/parse.h index fc2eb12..5f6e26a 100644 --- a/gcc/go/gofrontend/parse.h +++ b/gcc/go/gofrontend/parse.h @@ -167,13 +167,13 @@ class Parse Type* pointer_type(); Type* channel_type(); Function_type* signature(Typed_identifier*, source_location); - Typed_identifier_list* parameters(bool* is_varargs); + bool parameters(Typed_identifier_list**, bool* is_varargs); Typed_identifier_list* parameter_list(bool* is_varargs); void parameter_decl(bool, Typed_identifier_list*, bool*, bool*); - Typed_identifier_list* result(); + bool result(Typed_identifier_list**); source_location block(); Type* interface_type(); - bool method_spec(Typed_identifier_list*); + void method_spec(Typed_identifier_list*); void declaration(); bool declaration_may_start_here(); void decl(void (Parse::*)(void*), void*); -- cgit v1.1