From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 79349 invoked by alias); 3 Nov 2015 09:50:12 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 79337 invoked by uid 89); 3 Nov 2015 09:50:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: nm5-vm4.bullet.mail.ne1.yahoo.com Received: from nm5-vm4.bullet.mail.ne1.yahoo.com (HELO nm5-vm4.bullet.mail.ne1.yahoo.com) (98.138.91.165) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 03 Nov 2015 09:50:10 +0000 Received: from [98.138.100.103] by nm5.bullet.mail.ne1.yahoo.com with NNFMP; 03 Nov 2015 09:50:08 -0000 Received: from [98.138.226.129] by tm102.bullet.mail.ne1.yahoo.com with NNFMP; 03 Nov 2015 09:50:08 -0000 Received: from [127.0.0.1] by smtp216.mail.ne1.yahoo.com with NNFMP; 03 Nov 2015 09:50:08 -0000 X-Yahoo-SMTP: x0SCrfmswBCvW0SeKOpOOY7IMgY- From: Damian Rouson Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: [4.9/5.2/6.0] ICE on function result with procedure pointer component Date: Tue, 03 Nov 2015 09:50:00 -0000 Message-Id: <229AFF73-0B81-43A0-A3DB-350486603B52@sourceryinstitute.org> Cc: Robert Numrich To: Gfortran List Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00011.txt.bz2 All, I just submitted the code below as Bug 68196 (https://gcc.gnu.org/bugzilla/= show_bug.cgi?id=3D68196) on be behalf of Bob Numrich. Could this be relate= d to Bug 36704 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D36704), whic= h was fixed, or to Bug 66465 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id= =3D66465), which remains open? In case it=E2=80=99s of interest to anyone, the bug report is also now arch= ived in the AdHoc project (https://github.com/sourceryinstitute/AdHoc), whi= ch I=E2=80=99m using to automate the demonstration and and checking of bug = reports across compilers, compiler versions, and platforms. In particular,= the following folder contains automatically generated output files for Bug= 68196 for each of the gfortran versions I have installed on OS X: https://github.com/sourceryinstitute/AdHoc/tree/master/src/gnu/numrich/bug-= 68196 Damian $ cat proc-ptr-component.f90=20 type AA procedure(foo), pointer :: funct end type=20 contains function foo(A) class(AA) A type(AA) foo end function=20 end=20 $ gfortran proc-ptr-component.f90=20 gfortran: internal compiler error: Segmentation fault: 11 (program f951) Please submit a full bug report, with preprocessed source if appropriate. See < https://trac.macports.org/newticket > for instructions. $ gfortran --version GNU Fortran (MacPorts gcc6 6-20151018_0) 6.0.0 20151018 (experimental)