From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80266 invoked by alias); 26 Feb 2018 11:00:42 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 76948 invoked by uid 89); 26 Feb 2018 11:00:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,SPAM_BODY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=our X-Spam-User: qpsmtpd, 2 recipients X-HELO: nef2.ens.fr Received: from nef2.ens.fr (HELO nef2.ens.fr) (129.199.96.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 26 Feb 2018 11:00:33 +0000 Received: from mailhost.lps.ens.fr (tournesol.lps.ens.fr [129.199.120.1]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id w1QB0KFJ078687 ; Mon, 26 Feb 2018 12:00:20 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mailhost.lps.ens.fr (Postfix) with ESMTP id 2347614A; Mon, 26 Feb 2018 12:00:20 +0100 (CET) Received: from mailhost.lps.ens.fr ([127.0.0.1]) by localhost (tournesol.lps.ens.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NsEGm82X9Ggs; Mon, 26 Feb 2018 12:00:20 +0100 (CET) Received: from [192.168.1.11] (log78-1-82-242-47-10.fbx.proxad.net [82.242.47.10]) by mailhost.lps.ens.fr (Postfix) with ESMTPSA id E69B7143; Mon, 26 Feb 2018 12:00:19 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: [Patch fortran] PR32957 - C/Fortran interoperability and -fdefault-integer-8 From: =?utf-8?Q?Dominique_d=27Humi=C3=A8res?= In-Reply-To: <7b6cd454-9cc9-6161-270e-39568cbd6f6d@netcologne.de> Date: Mon, 26 Feb 2018 11:00:00 -0000 Cc: gfortran , gcc-patches Content-Transfer-Encoding: quoted-printable Message-Id: References: <7b6cd454-9cc9-6161-270e-39568cbd6f6d@netcologne.de> To: Thomas Koenig X-SW-Source: 2018-02/txt/msg00180.txt.bz2 Thanks for the quick review, committed as r257985. I have spotted a few sim= ilar issues in my recent testing and I have problem with gfortran.dg/bind_c= _usage_10.f03 when using -fdefault-integer-8: /opt/gcc/_clean/gcc/testsuite/gfortran.dg/bind_c_usage_10.f03:66:31: integer(c_int) function func4() 1 Error: FUNCTION result func4 can't be of type INTEGER(4) in FUNCTION func4 = at (1) /opt/gcc/_clean/gcc/testsuite/gfortran.dg/bind_c_usage_10.f03:59:31: integer(c_int) function func3() bind(c, name=3D"myFunc3") 1 Error: FUNCTION result func3 can't be of type INTEGER(4) in FUNCTION func3 = at (1) /opt/gcc/_clean/gcc/testsuite/gfortran.dg/bind_c_usage_10.f03:52:31: integer(c_int) function func2() 1 Error: FUNCTION result func2 can't be of type INTEGER(4) in FUNCTION func2 = at (1) /opt/gcc/_clean/gcc/testsuite/gfortran.dg/bind_c_usage_10.f03:45:31: integer(c_int) function func1() bind(c, name=3D"myFunc1") 1 Error: FUNCTION result func1 can't be of type INTEGER(4) in FUNCTION func1 = at (1) AFAIU the code func* are integer(c_int), then why these errors? TIA Dominique > Le 26 f=C3=A9vr. 2018 =C3=A0 00:34, Thomas Koenig = a =C3=A9crit : >=20 > Hi Dominique, >=20 >> OK for trunk? back port? >=20 > OK for trunk. >=20 > The tests were non-conforming before, so this is also a > step in making our testsuite better. >=20 > For gcc-7, I'm not sure I would bother, but OK if > you want to do it. >=20 > Regards >=20 > Thomas