From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29333 invoked by alias); 9 Jan 2012 13:30:28 -0000 Received: (qmail 29324 invoked by uid 22791); 9 Jan 2012 13:30:27 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 Jan 2012 13:29:40 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51522] ICE in gfortran 4.6.2, x86_64 Date: Mon, 09 Jan 2012 13:30: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-Keywords: error-recovery X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Resolution Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-01/txt/msg00857.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51522 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Tobias Burnus 2012-01-09 13:28:47 UTC --- With the patch for PR 51578 (for GCC 4.7), the ICE is fixed. For the lines integer(c_int) function vect_Utils_vuTriIneqHolds_c(u, v, tol, exception) & use, intrinsic :: iso_c_binding real(c_double) function vect_Utils_vuNorm_c(u, tol, badLevel, exception) bind(c) end function vect_Utils_vuNorm_c one get the errors integer(c_int) function vect_Utils_vuTriIneqHolds_c(u, v, tol, exception)& 1 Error: Parameter 'c_int' at (1) has not been declared or is a variable, which does not reduce to a constant expression real(c_double) function vect_Utils_vuNorm_c(u, tol, badLevel, exception) bind 1 Error: Parameter 'c_double' at (1) has not been declared or is a variable, which does not reduce to a constant expression I think the second one is perfect - there is no "USE ISO_C_Binding" statement in "function vect_Utils_vuNorm_c". The first error is not that good as the problem is the "&" in function foo() & use m A better error message would be a syntax error, pointing at the "&" - but I think it is not really needed and also not easy to give a helpful message. Hence, I close this PR as FIXED. If you think something else should be improved, feel free to reopen this bug. Thanks Adrian for reporting the internal compiler error.