This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gfortran,commited] Fix ICE on error message display


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]