public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/39295] New: [4.2/4.3/4.4 Regression] Too strict interface conformance check
@ 2009-02-24 19:58 burnus at gcc dot gnu dot org
2009-02-24 19:59 ` [Bug fortran/39295] " burnus at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-02-24 19:58 UTC (permalink / raw)
To: gcc-bugs
Reported by Jon Hurst at http://gcc.gnu.org/ml/fortran/2009-02/msg00152.html
Said to compile with 4.0.3, rejected with 4.1/4.2/4.3/4.4.
Compiles with NAG f95, ifort, g95, sunf95, openf95 and pgf90.
At a glance, it looks valid but I have not checked thoroughly.
Test case by Jon Hurst:
MODULE funcs
CONTAINS
INTEGER FUNCTION test1(a,b,opfunc)
INTEGER :: a,b
INTEGER, EXTERNAL :: opfunc
test1 = opfunc( a, b )
END FUNCTION test1
INTEGER FUNCTION sumInts(a,b)
INTEGER :: a,b
sumInts = a + b
END FUNCTION sumInts
END MODULE funcs
PROGRAM test
USE funcs
INTEGER :: rs
INTEGER, PARAMETER :: a = 2, b = 1
rs = recSum( a, b, test1, sumInts )
write(*,*) "Results", rs
CONTAINS
RECURSIVE INTEGER FUNCTION recSum( a,b,UserFunction,UserOp ) RESULT( res )
IMPLICIT NONE
INTEGER :: a,b
INTERFACE
INTEGER FUNCTION UserFunction(a,b,opfunc)
INTEGER :: a,b
INTEGER, EXTERNAL :: opfunc
END FUNCTION UserFunction
END INTERFACE
INTEGER, EXTERNAL :: UserOp
res = UserFunction( a,b, UserOp )
if( res .lt. 10 ) then
res = recSum( a, res, UserFunction, UserOp )
end if
END FUNCTION recSum
END PROGRAM test
--
Summary: [4.2/4.3/4.4 Regression] Too strict interface
conformance check
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39295
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/39295] [4.2/4.3/4.4 Regression] Too strict interface conformance check
2009-02-24 19:58 [Bug fortran/39295] New: [4.2/4.3/4.4 Regression] Too strict interface conformance check burnus at gcc dot gnu dot org
@ 2009-02-24 19:59 ` burnus at gcc dot gnu dot org
2009-02-25 7:55 ` pault at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-02-24 19:59 UTC (permalink / raw)
To: gcc-bugs
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.1.3 4.2.1 4.3.2 4.4.0
Known to work| |4.0.3
Priority|P3 |P4
Target Milestone|--- |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39295
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/39295] [4.2/4.3/4.4 Regression] Too strict interface conformance check
2009-02-24 19:58 [Bug fortran/39295] New: [4.2/4.3/4.4 Regression] Too strict interface conformance check burnus at gcc dot gnu dot org
2009-02-24 19:59 ` [Bug fortran/39295] " burnus at gcc dot gnu dot org
@ 2009-02-25 7:55 ` pault at gcc dot gnu dot org
2009-02-26 18:44 ` pault at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2009-02-25 7:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pault at gcc dot gnu dot org 2009-02-25 07:55 -------
Confirmed
A temporary work around is to remove the interface for UserFunction and declare
it to be external.
>From a very quick look, the test for type and kind is failing because the
formal argument does not seem to gain the attribute function at the right time.
Cheers
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-02-25 07:55:48
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39295
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/39295] [4.2/4.3/4.4 Regression] Too strict interface conformance check
2009-02-24 19:58 [Bug fortran/39295] New: [4.2/4.3/4.4 Regression] Too strict interface conformance check burnus at gcc dot gnu dot org
2009-02-24 19:59 ` [Bug fortran/39295] " burnus at gcc dot gnu dot org
2009-02-25 7:55 ` pault at gcc dot gnu dot org
@ 2009-02-26 18:44 ` pault at gcc dot gnu dot org
2009-02-26 18:45 ` [Bug fortran/39295] [4.3 " pault at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2009-02-26 18:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pault at gcc dot gnu dot org 2009-02-26 18:44 -------
Subject: Bug 39295
Author: pault
Date: Thu Feb 26 18:43:50 2009
New Revision: 144449
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144449
Log:
2009-02-26 Paul Thomas <pault@gcc.gnu.org>
PR fortran/39295
* interface.c (compare_type_rank_if): Return 1 if the symbols
are the same and deal with external procedures where one is
identified to be a function or subroutine by usage but the
other is not.
2009-02-26 Paul Thomas <pault@gcc.gnu.org>
PR fortran/39295
* gfortran.dg/interface_25.f90: New test.
* gfortran.dg/interface_26.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/interface_25.f90
trunk/gcc/testsuite/gfortran.dg/interface_26.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/interface.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39295
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/39295] [4.3 Regression] Too strict interface conformance check
2009-02-24 19:58 [Bug fortran/39295] New: [4.2/4.3/4.4 Regression] Too strict interface conformance check burnus at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-02-26 18:44 ` pault at gcc dot gnu dot org
@ 2009-02-26 18:45 ` pault at gcc dot gnu dot org
2009-03-07 15:59 ` pault at gcc dot gnu dot org
2009-03-07 16:00 ` pault at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2009-02-26 18:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pault at gcc dot gnu dot org 2009-02-26 18:45 -------
Fixed on trunk.
I am not going to fix 4.2 but will do 4.3 in a few days.
Cheers
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2009-02-25 07:55:48 |2009-02-26 18:45:38
date| |
Summary|[4.2/4.3/4.4 Regression] Too|[4.3 Regression] Too strict
|strict interface conformance|interface conformance check
|check |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39295
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/39295] [4.3 Regression] Too strict interface conformance check
2009-02-24 19:58 [Bug fortran/39295] New: [4.2/4.3/4.4 Regression] Too strict interface conformance check burnus at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-02-26 18:45 ` [Bug fortran/39295] [4.3 " pault at gcc dot gnu dot org
@ 2009-03-07 15:59 ` pault at gcc dot gnu dot org
2009-03-07 16:00 ` pault at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2009-03-07 15:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pault at gcc dot gnu dot org 2009-03-07 15:59 -------
Subject: Bug 39295
Author: pault
Date: Sat Mar 7 15:58:49 2009
New Revision: 144695
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144695
Log:
2009-03-07 Paul Thomas <pault@gcc.gnu.org>
PR fortran/39295
* interface.c (compare_type_rank_if): Return 1 if the symbols
are the same and deal with external procedures where one is
identified to be a function or subroutine by usage but the
other is not.
2009-03-07 Paul Thomas <pault@gcc.gnu.org>
PR fortran/39295
* gfortran.dg/interface_25.f90: New test.
* gfortran.dg/interface_26.f90: New test.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/interface_25.f90
branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/interface_26.f90
Modified:
branches/gcc-4_3-branch/gcc/fortran/ChangeLog
branches/gcc-4_3-branch/gcc/fortran/interface.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39295
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/39295] [4.3 Regression] Too strict interface conformance check
2009-02-24 19:58 [Bug fortran/39295] New: [4.2/4.3/4.4 Regression] Too strict interface conformance check burnus at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-03-07 15:59 ` pault at gcc dot gnu dot org
@ 2009-03-07 16:00 ` pault at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2009-03-07 16:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pault at gcc dot gnu dot org 2009-03-07 16:00 -------
Fixed on trunk and 4.3.
Thanks for the report.
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39295
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-03-07 16:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-24 19:58 [Bug fortran/39295] New: [4.2/4.3/4.4 Regression] Too strict interface conformance check burnus at gcc dot gnu dot org
2009-02-24 19:59 ` [Bug fortran/39295] " burnus at gcc dot gnu dot org
2009-02-25 7:55 ` pault at gcc dot gnu dot org
2009-02-26 18:44 ` pault at gcc dot gnu dot org
2009-02-26 18:45 ` [Bug fortran/39295] [4.3 " pault at gcc dot gnu dot org
2009-03-07 15:59 ` pault at gcc dot gnu dot org
2009-03-07 16:00 ` pault at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).