From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15630 invoked by alias); 5 Nov 2013 06:40:21 -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 14955 invoked by uid 48); 5 Nov 2013 06:38:18 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/58998] New: [4.8/4.9 Regression] Generic interface problem with gfortran Date: Tue, 05 Nov 2013 06:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter Message-ID: 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: 2013-11/txt/msg00297.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58998 Bug ID: 58998 Summary: [4.8/4.9 Regression] Generic interface problem with gfortran Product: gcc Version: 4.9.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Paul van Delst reports at https://groups.google.com/forum/#!topic/comp.lang.fortran/MzOnH6_yvPU the following issue. Compiles with GCC 4.4.6, 4.6, 4.7.3, ifort v12.4 and PGI v11. Fails with GCC 4.8 and 4.9 with: iargc_8=iargc() 1 Error: Function 'iargc_8' at (1) cannot be called recursively, as it is not RECURSIVE Conclusion of Robert Corbett and Richard Maine was that the code is ugly but valid. module args_mod interface iargc module procedure iargc_8 end interface interface getarg subroutine getarg(k,c) integer(4) k character*(*) c end subroutine getarg module procedure getarg_8 end interface contains integer(8) function iargc_8() integer(4) iargc iargc_8=iargc() end function iargc_8 subroutine getarg_8(k,c) integer(8) k character*(*) c integer(4) k4 k4=k call getarg(k4,c) end subroutine getarg_8 end module args_mod