Apparent bug --> fixed._(re)

Sun, 26 Jan 1997 00:16:07 +0100 (MET)


According to Stephen Lindholm:
> I believe that this should not compile with a warning.
> [...]

I fixed the bug.  Below is the diff for gpc-parse.y.  You need Bison
to produce gpc-parse.c out of it and to compile GPC, but you can also
ignore the warning or surround the passage it with (*$W-*) ... (*$W+*)
to suppress the warning.  The bug is not serious enough that we
release new binaries, but it will be fixed in the next release, of
course.

Thanks again for the report,

    Peter

      e-mail:  peter.gerwinski@uni-essen.de
home address:  D\"usseldorfer Str. 35, 45145 Essen, Germany
         WWW:  http://agnes.dida.physik.uni-essen.de/~peter/

8< ---------------------------------------------------------------------

--- gpc-parse.y.old	Sat Jan 25 23:18:31 1997
+++ gpc-parse.y	Sat Jan 25 23:18:35 1997
@@ -3847,7 +3847,7 @@
 		      warning ("Extended Pascal does not allow parameters to HALT");
 		  build_rts_call (p_HALT, $2); }
 	| rts_file_open '(' actual_parameter optional_filename r_paren_or_error
-		{ if (pedantic && $4 != NULL_TREE)
+		{ if (pedantic && $4 != null_pointer_node)
 		    warning ("ISO Pascal does not allow file name parameter to reset/rewrite");
 		  build_rts_call ($1, 
 				 tree_cons (NULL_TREE, $3,



Peter Gerwinski (peter@agnes.dida.physik.uni-essen.de)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es