[gfortran,commited] Fix ICE on error message display

François-Xavier Coudert fxcoudert@gmail.com
Mon Sep 25 09:24:00 GMT 2006


Commited as obvious.

2006-09-25  Tobias Schluter  <tobias.schlueter@physik.uni-muenchen.de>

        PR fortran/21203
        * error.c (show_loci): No need to risk an ICE to output a
        slightly nicer error message.


--- trunk/gcc/fortran/error.c	2006/09/25 00:17:24	117190
+++ trunk/gcc/fortran/error.c	2006/09/25 09:19:36	117191
@@ -199,7 +199,7 @@
 {
   int offset, flag, i, m, c1, c2, cmax;

-  if (l1 == NULL)
+  if (l1 == NULL || l1->lb == NULL)
     {
       error_printf ("<During initialization>\n");
       return;



More information about the Fortran mailing list