From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4977 invoked by alias); 12 Feb 2006 18:47:11 -0000 Received: (qmail 4953 invoked by uid 48); 12 Feb 2006 18:47:08 -0000 Date: Sun, 12 Feb 2006 18:47:00 -0000 Message-ID: <20060212184708.4952.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/21203] Segfault while compiling libgfortran/intrinsics/selected_int_kind.f90 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tobi at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-02/txt/msg01182.txt.bz2 List-Id: ------- Comment #28 from tobi at gcc dot gnu dot org 2006-02-12 18:47 ------- Ralf, this patch should fix the segfault, it shouldn't give you a working compiler, though. Index: error.c =================================================================== --- error.c (revision 110873) +++ error.c (working copy) @@ -199,7 +199,7 @@ show_loci (locus * l1, locus * l2) { int offset, flag, i, m, c1, c2, cmax; - if (l1 == NULL) + if (!l1 || !l1->lb) { error_printf ("\n"); return; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21203