This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gfortran,commited] Fix ICE on error message display
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 25 Sep 2006 11:24:51 +0200
- Subject: [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;