From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3306 invoked by alias); 19 Jun 2010 00:48:08 -0000 Received: (qmail 3172 invoked by uid 48); 19 Jun 2010 00:47:49 -0000 Date: Sat, 19 Jun 2010 00:48:00 -0000 Message-ID: <20100619004749.3171.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/44584] gfortran.dg/typebound_proc_15.f03 failed In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hjl dot tools at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-06/txt/msg01885.txt.bz2 ------- Comment #6 from hjl dot tools at gmail dot com 2010-06-19 00:47 ------- (In reply to comment #5) > Ok, actually I also get an ICE. But for some reason only when compiling by > hand, not in the testsuite. > > It is fixed by this patch: > > > Index: gcc/fortran/resolve.c > =================================================================== > --- gcc/fortran/resolve.c (revision 160948) > +++ gcc/fortran/resolve.c (working copy) > @@ -10850,7 +10850,7 @@ > c->ts.u.cl = cl; > } > } > - else if (c->ts.interface->name[0] != '\0' && !sym->attr.vtype) > + else if (!sym->attr.vtype && c->ts.interface->name[0] != '\0') > { > gfc_error ("Interface '%s' of procedure pointer component " > "'%s' at %L must be explicit", c->ts.interface->name, > > > Does this fix the issue for you? > It will be while before I can check it on ia64. However if your patch fixes valgrind issue on x86, it won't hurt to check it in. Thanks. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44584