From 1532e6df6022f23f88fa25c79fe5c47ae6e5d7cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Sat, 16 Nov 1996 19:45:15 -0800
Subject: [PATCH] bugfix

Rev: src/language.yacc:1.8
---
 src/language.yacc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/language.yacc b/src/language.yacc
index de661ee4b6..0f7cb9223a 100644
--- a/src/language.yacc
+++ b/src/language.yacc
@@ -156,7 +156,7 @@
 /* This is the grammar definition of Pike. */
 
 #include "global.h"
-RCSID("$Id: language.yacc,v 1.7 1996/11/14 01:24:10 hubbe Exp $");
+RCSID("$Id: language.yacc,v 1.8 1996/11/17 03:45:15 hubbe Exp $");
 #ifdef HAVE_MEMORY_H
 #include <memory.h>
 #endif
@@ -640,7 +640,12 @@ opt_object_type:  /* Empty */ { push_type_int(0); }
   | '(' program_ref ')'
   {
     if(sp[-1].type == T_PROGRAM)
+    {
       push_type_int(sp[-1].u.program->id);
+    }else{
+      yyerror("Not a valid program specifyer");
+      push_type_int(0);
+    }
     pop_n_elems(2);
   }
   ;
-- 
GitLab