From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30120 invoked by alias); 4 Apr 2015 11:16:38 -0000 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 Received: (qmail 30073 invoked by uid 48); 4 Apr 2015 11:16:35 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/59024] ICE: after printing certain error messages, the compiler seg faults. Date: Sat, 04 Apr 2015 11:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg00273.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59024 --- Comment #3 from Dominique d'Humieres --- > The change of behavior occurred between revisions r214073 (2014-08-17, ICE) > and r214113 (2014-08-18, error). A candidate could be r214076, > but I don't see why. This seems to depend on the mood of my machine: [Book15] f90/bug% /opt/gcc/gcc4.10p-214113/bin/gfortran pr59024.f90 gfortran: warning: couldn't understand kern.osversion '14.1.0 pr59024.f90:6.6: TYPE tc 1 Error: Syntax error in PUBLIC statement at (1) pr59024.f90:7.5: END TYPE tc 1 Error: Expecting END MODULE statement at (1) pr59024.f90:15.12: TYPE(tc) t 1 Error: Derived type 'tc' at (1) is being used before it is defined f951: internal compiler error: Segmentation fault: 11 f951: internal compiler error: Abort trap: 6 gfortran: internal compiler error: Abort trap: 6 (program f951) Abort [Book15] f90/bug% /opt/gcc/gcc4.10p-214113/bin/gfortran pr59024.f90 gfortran: warning: couldn't understand kern.osversion '14.1.0 pr59024.f90:6.6: TYPE tc 1 Error: Syntax error in PUBLIC statement at (1) pr59024.f90:7.5: END TYPE tc 1 Error: Expecting END MODULE statement at (1) pr59024.f90:15.12: TYPE(tc) t 1 Error: Derived type 'tc' at (1) is being used before it is defined pr59024.f90:17.14: END MODULE mtc 1 Error: Procedure 'C_PTR_1' in generic interface 'tc' at (1) is neither function nor subroutine [Book15] f90/bug% /opt/gcc/gcc4.10p-214073/bin/gfortran pr59024.f90 gfortran: warning: couldn't understand kern.osversion '14.1.0 pr59024.f90:6.6: TYPE tc 1 Error: Syntax error in PUBLIC statement at (1) pr59024.f90:7.5: END TYPE tc 1 Error: Expecting END MODULE statement at (1) pr59024.f90:15.12: TYPE(tc) t 1 Error: Derived type 'tc' at (1) is being used before it is defined pr59024.f90:17.14: END MODULE mtc 1 Error: Procedure 'C_PTR_1' in generic interface 'tc' at (1) is neither function nor subroutine So the bisection is not accurate, probably for the same reason as for pr59016.