This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[Patch, Fortran] specific or generic INTERFACE implies the EXTERNAL attribute (PR36325)
- From: "Janus Weil" <janus at gcc dot gnu dot org>
- To: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, "Tobias Burnus" <burnus at net-b dot de>
- Date: Wed, 28 May 2008 20:50:02 +0200
- Subject: [Patch, Fortran] specific or generic INTERFACE implies the EXTERNAL attribute (PR36325)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=pPYZbtrZNkxJtOqQpzXpCwlrIRNuGqqgIk8xazOwyjc=; b=l8ft1F8FACGElN+MbHknAJyrVetWF4wcQUa8tvCdzLz1utjQ8v9xSmi7J5rPGgPYl47ZtK3IjxaGdvEnyU7PhLTuB1Bjhcs1m91XdPrgjkw1zohrlukDbrx3o1YfYX8wx+Fwh2uWdZlN4gNEHkwe1mGRh+K5BO0rBB7apIN2MV0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=j+vlCHVrJfovqnuYEhhaLxCo2PNfXhGg8xX/TPisdlLHSGrYIxvClwelZSUJSiS+fLHLeSYllkAnO4fwwoGIyp9vo1u3fsk6gKPEQmXGI9Drno0YAAK1IcUo1rq8hr0Y/tnZv+Jydz+6UN4AuoA96+Hj5MSuTElUUsGSgh1UU84=
Hi all,
here is the fix for PR36325, regtested on i686-pc-linux-gnu with no
failures. Since I have svn write permission now, I can commit it
myself. I just need someone to approve it.
Cheers,
Janus
2008-05-28 Janus Weil <janus@gcc.gnu.org>
PR fortran/36325
* interface.c (gfc_procedure_use): Enable argument checking for
external procedures with explicit interface.
* symbol.c (check_conflict): Fix conflict checking for externals.
(copy_formal_args): Fix handling of arrays.
* resolve.c (resolve_specific_f0, resolve_specific_s0): Fix handling
of intrinsics.
* parse.c (parse_interface): Non-abstract INTERFACE statement implies
EXTERNAL attribute.
2008-05-28 Janus Weil <janus@gcc.gnu.org>
PR fortran/36325
* gfortran.dg/interface_23.f90: New.
* gfortran.dg/gomp/reduction3.f90: Fixed invalid code.
* gfortran.dg/proc_decl_12.f90: New:
* gfortran.dg/external_procedures_1.f90: Fixed error message.