From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6641 invoked by alias); 3 Dec 2012 15:06:05 -0000 Received: (qmail 6583 invoked by uid 48); 3 Dec 2012 15:05:47 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55574] c binding access to c_ptr type Date: Mon, 03 Dec 2012 15:06: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: minor X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC 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-12/txt/msg00214.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55574 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #1 from Dominique d'Humieres 2012-12-03 15:05:45 UTC --- Up to revision 181424 (4.7.0), compiling the test gives the following error: pr55574.f90:4.13: type(C_PTR) :: f_ptr 1 Error: Derived type 'c_ptr' at (1) is being used before it is defined pr55574.f90:5.8: f_ptr=c_loc(i) 1 Error: Can't convert TYPE(_gfortran_iso_c_binding_c_ptr) to REAL(4) at (1) Starting at revision 181425, the test compiles without error.