public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33945] New: PROCEDURE in module somtimes wrongly rejected
@ 2007-10-29 20:00 burnus at gcc dot gnu dot org
2007-11-02 6:35 ` [Bug fortran/33945] " jvdelisle at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-10-29 20:00 UTC (permalink / raw)
To: gcc-bugs
Compiling the following program gives the error:
procedure(sub) :: x
1
Error: Duplicate PROCEDURE attribute specified at (1)
I think the program is valid and it is also accepted by NAG f95.
module m
implicit none
interface bar
procedure x
end interface bar
procedure(sub) :: x
interface
subroutine sub()
end subroutine sub
end interface
end module m
--
Summary: PROCEDURE in module somtimes wrongly rejected
Product: gcc
Version: 4.3.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=33945
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/33945] PROCEDURE in module somtimes wrongly rejected
2007-10-29 20:00 [Bug fortran/33945] New: PROCEDURE in module somtimes wrongly rejected burnus at gcc dot gnu dot org
@ 2007-11-02 6:35 ` jvdelisle at gcc dot gnu dot org
2007-11-02 7:40 ` burnus at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-11-02 6:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jvdelisle at gcc dot gnu dot org 2007-11-02 06:35 -------
The statement:
procedure x
is an F2003 feature allowing the word 'module' preceding as optional.
If I use 'module procedure x' the test case compiles OK for me. I think I may
have fixed this with my pr33162 patch. I seem to remember bumping into this
'Duplicate PROCEDURE attribute specified' error somewhere along the way.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33945
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/33945] PROCEDURE in module somtimes wrongly rejected
2007-10-29 20:00 [Bug fortran/33945] New: PROCEDURE in module somtimes wrongly rejected burnus at gcc dot gnu dot org
2007-11-02 6:35 ` [Bug fortran/33945] " jvdelisle at gcc dot gnu dot org
@ 2007-11-02 7:40 ` burnus at gcc dot gnu dot org
2007-11-02 13:29 ` jvdelisle at verizon dot net
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-11-02 7:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from burnus at gcc dot gnu dot org 2007-11-02 07:40 -------
(In reply to comment #1)
> The statement:
> procedure x
> is an F2003 feature allowing the word 'module' preceding as optional.
Note: MODULE PROCEDURE and PROCEDURE mean different things.
"MODULE PROCEDURE" can only be a procedure which is a procedure from that
module. "PROCEDURE" can be any procedure whose interface is explicitly known:
Module procedures, use-associated procedures, external procedures (via
INTERFACE or PROCEDURE(...) statement).
> If I use 'module procedure x' the test case compiles OK for me.
I think this implies another bug as I believe there is not any module procedure
in that module. Using "MODULE PROCEDURE" other compilers give also an error:
NAG f95:
Error: af.f90, line 11: Undefined module procedure X
g95:
Error: EXTERNAL-PROC procedure 'x' at (1) is already a MODULE-PROC procedure
> I think I may have fixed this with my pr33162 patch. I seem to remember
> bumping into this 'Duplicate PROCEDURE attribute specified' error somewhere
> along the way.
I will try your pr33162 patch. (Might take a while since I have at the moment
only a lousy internet connection.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33945
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/33945] PROCEDURE in module somtimes wrongly rejected
2007-10-29 20:00 [Bug fortran/33945] New: PROCEDURE in module somtimes wrongly rejected burnus at gcc dot gnu dot org
2007-11-02 6:35 ` [Bug fortran/33945] " jvdelisle at gcc dot gnu dot org
2007-11-02 7:40 ` burnus at gcc dot gnu dot org
@ 2007-11-02 13:29 ` jvdelisle at verizon dot net
2007-11-02 15:31 ` fxcoudert at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at verizon dot net @ 2007-11-02 13:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jvdelisle at verizon dot net 2007-11-02 13:29 -------
Subject: Re: PROCEDURE in module somtimes wrongly rejected
burnus at gcc dot gnu dot org wrote:
> ------- Comment #2 from burnus at gcc dot gnu dot org 2007-11-02 07:40 -------
> Note: MODULE PROCEDURE and PROCEDURE mean different things.
>
> "MODULE PROCEDURE" can only be a procedure which is a procedure from that
> module. "PROCEDURE" can be any procedure whose interface is explicitly known:
> Module procedures, use-associated procedures, external procedures (via
> INTERFACE or PROCEDURE(...) statement).
>
Is that PROCEDURE(...) with or without the parenthesis? We need to parse this
correctly without a doubt or we have to search the module to tell the
difference? (If the 'MODULE' key word is optional for "MODULE PROCEDURE".)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33945
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/33945] PROCEDURE in module somtimes wrongly rejected
2007-10-29 20:00 [Bug fortran/33945] New: PROCEDURE in module somtimes wrongly rejected burnus at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-11-02 13:29 ` jvdelisle at verizon dot net
@ 2007-11-02 15:31 ` fxcoudert at gcc dot gnu dot org
2007-11-08 15:29 ` burnus at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-11-02 15:31 UTC (permalink / raw)
To: gcc-bugs
--
fxcoudert 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 |2007-11-02 15:31:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33945
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/33945] PROCEDURE in module somtimes wrongly rejected
2007-10-29 20:00 [Bug fortran/33945] New: PROCEDURE in module somtimes wrongly rejected burnus at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-11-02 15:31 ` fxcoudert at gcc dot gnu dot org
@ 2007-11-08 15:29 ` burnus at gcc dot gnu dot org
2007-11-08 15:39 ` burnus at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-11-08 15:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from burnus at gcc dot gnu dot org 2007-11-08 15:29 -------
Both problems fixed on the trunk (4.3.0). Other branches are not affected as
PROCEDURE is new.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33945
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/33945] PROCEDURE in module somtimes wrongly rejected
2007-10-29 20:00 [Bug fortran/33945] New: PROCEDURE in module somtimes wrongly rejected burnus at gcc dot gnu dot org
` (4 preceding siblings ...)
2007-11-08 15:29 ` burnus at gcc dot gnu dot org
@ 2007-11-08 15:39 ` burnus at gcc dot gnu dot org
2007-11-10 3:55 ` patchapp at dberlin dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-11-08 15:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from burnus at gcc dot gnu dot org 2007-11-08 15:39 -------
The check-in was the following (note the wrong bug number).
Author: burnus
Date: Thu Nov 8 15:28:30 2007
New Revision: 130002
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130002
Log:
2007-11-08 Tobias Burnus <burnus@net-b.de>
PR fortran/33917
* interface.c (check_sym_interfaces): Disallow PROCEDURE-declared
procedures for MODULE PROCEDURE.
* decl.c (match_procedure_in_interface): Do not mark as procedure.
2007-11-08 Tobias Burnus <burnus@net-b.de>
PR fortran/33917
* gfortran.dg/proc_decl_5.f90: New.
* gfortran.dg/proc_decl_6.f90: New.
Added:
trunk/gcc/testsuite/gfortran.dg/proc_decl_5.f90
trunk/gcc/testsuite/gfortran.dg/proc_decl_6.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/fortran/interface.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33945
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/33945] PROCEDURE in module somtimes wrongly rejected
2007-10-29 20:00 [Bug fortran/33945] New: PROCEDURE in module somtimes wrongly rejected burnus at gcc dot gnu dot org
` (5 preceding siblings ...)
2007-11-08 15:39 ` burnus at gcc dot gnu dot org
@ 2007-11-10 3:55 ` patchapp at dberlin dot org
2007-11-10 17:26 ` patchapp at dberlin dot org
2007-11-20 5:05 ` patchapp at dberlin dot org
8 siblings, 0 replies; 10+ messages in thread
From: patchapp at dberlin dot org @ 2007-11-10 3:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from patchapp at dberlin dot org 2007-11-10 03:54 -------
Subject: Bug number PR33945
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00416.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33945
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/33945] PROCEDURE in module somtimes wrongly rejected
2007-10-29 20:00 [Bug fortran/33945] New: PROCEDURE in module somtimes wrongly rejected burnus at gcc dot gnu dot org
` (6 preceding siblings ...)
2007-11-10 3:55 ` patchapp at dberlin dot org
@ 2007-11-10 17:26 ` patchapp at dberlin dot org
2007-11-20 5:05 ` patchapp at dberlin dot org
8 siblings, 0 replies; 10+ messages in thread
From: patchapp at dberlin dot org @ 2007-11-10 17:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from patchapp at dberlin dot org 2007-11-10 17:26 -------
Subject: Bug number PR33945
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00416.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33945
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/33945] PROCEDURE in module somtimes wrongly rejected
2007-10-29 20:00 [Bug fortran/33945] New: PROCEDURE in module somtimes wrongly rejected burnus at gcc dot gnu dot org
` (7 preceding siblings ...)
2007-11-10 17:26 ` patchapp at dberlin dot org
@ 2007-11-20 5:05 ` patchapp at dberlin dot org
8 siblings, 0 replies; 10+ messages in thread
From: patchapp at dberlin dot org @ 2007-11-20 5:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from patchapp at dberlin dot org 2007-11-20 05:05 -------
Subject: Bug number PR33945
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00416.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33945
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-11-20 5:05 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-29 20:00 [Bug fortran/33945] New: PROCEDURE in module somtimes wrongly rejected burnus at gcc dot gnu dot org
2007-11-02 6:35 ` [Bug fortran/33945] " jvdelisle at gcc dot gnu dot org
2007-11-02 7:40 ` burnus at gcc dot gnu dot org
2007-11-02 13:29 ` jvdelisle at verizon dot net
2007-11-02 15:31 ` fxcoudert at gcc dot gnu dot org
2007-11-08 15:29 ` burnus at gcc dot gnu dot org
2007-11-08 15:39 ` burnus at gcc dot gnu dot org
2007-11-10 3:55 ` patchapp at dberlin dot org
2007-11-10 17:26 ` patchapp at dberlin dot org
2007-11-20 5:05 ` patchapp at dberlin 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).