From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24731 invoked by alias); 26 Jan 2014 17:21:18 -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 24705 invoked by uid 48); 26 Jan 2014 17:21:12 -0000 From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/57048] [4.9 Regression] Handling of C_PTR and C_FUNPTR leads to reject valid Date: Sun, 26 Jan 2014 17:21: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.9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: mikael at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: 2014-01/txt/msg02708.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57048 Mikael Morin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikael at gcc dot gnu.org --- Comment #2 from Mikael Morin --- This fixes this case; However, it is not free of regressions. diff --git a/gcc/fortran/trans-types.c b/gcc/fortran/trans-types.c index adc34dd..24ceaea 100644 --- a/gcc/fortran/trans-types.c +++ b/gcc/fortran/trans-types.c @@ -2366,8 +2366,6 @@ gfc_get_derived_type (gfc_symbol * derived) else derived->backend_decl = pfunc_type_node; - derived->ts.kind = gfc_index_integer_kind; - derived->ts.type = BT_INTEGER; /* Set the f90_type to BT_VOID as a way to recognize something of type BT_INTEGER that needs to fit a void * for the purpose of the iso_c_binding derived types. */