From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14915 invoked by alias); 18 Feb 2013 19:22:01 -0000 Received: (qmail 13965 invoked by uid 48); 18 Feb 2013 19:21:20 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/56378] gfortran internal compiler error Date: Mon, 18 Feb 2013 19:22: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: 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-Changed-Fields: Status Ever Confirmed 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: 2013-02/txt/msg01839.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56378 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 --- Comment #6 from Dominique d'Humieres 2013-02-18 19:21:18 UTC --- If I do the following changes to the test in comment #5 in order to silence the warnings " ... may not be C interoperable ... ": module t use, intrinsic :: iso_c_binding interface fvec2vec module procedure int_fvec2vec end interface contains function int_fvec2vec (f_vec, n) result (c_vec) integer f_vec(:) integer(c_int), target :: c_vec(n) end function int_fvec2vec subroutine lat_to_c (Fp) bind(c) type(c_ptr), value :: Fp integer(c_int) :: n1_ic integer, allocatable :: ic(:) call lat_to_c2 (c_loc(fvec2vec(ic, n1_ic))) end subroutine lat_to_c end module end revision 158253 (2010-04-13) gives a (bogus?) error pr56378_db.f90:17.23: call lat_to_c2 (c_loc(fvec2vec(ic, n1_ic))) 1 Error: Parameter 'fvec2vec' to 'c_loc' at (1) must be either a TARGET or an associated pointer while revision 162456 (2010-07-23) gives the ICE.