public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36705] New: Procedure pointers with attributes statements
@ 2008-07-02 20:44 burnus at gcc dot gnu dot org
2008-08-14 17:12 ` [Bug fortran/36705] " janus at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-07-02 20:44 UTC (permalink / raw)
To: gcc-bugs
save :: p
procedure() :: p
pointer :: p
end
Error: PROCEDURE attribute conflicts with SAVE attribute in 'p' at (1)
Problem: The SAVE + PROCEDURE checking comes too early before the POINTER is
seen. I think this program is valid.
Analogously:
subroutine bar(x)
procedure(), intent(in) :: x
pointer :: x
end subroutine bar
Here, the POINTER comes too late for INTENT
--
Summary: Procedure pointers with attributes statements
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
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=36705
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/36705] Procedure pointers with attributes statements
2008-07-02 20:44 [Bug fortran/36705] New: Procedure pointers with attributes statements burnus at gcc dot gnu dot org
@ 2008-08-14 17:12 ` janus at gcc dot gnu dot org
2008-08-14 21:18 ` janus at gcc dot gnu dot org
2008-08-14 21:22 ` janus at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: janus at gcc dot gnu dot org @ 2008-08-14 17:12 UTC (permalink / raw)
To: gcc-bugs
--
janus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |janus at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-08-14 17:11:24
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36705
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/36705] Procedure pointers with attributes statements
2008-07-02 20:44 [Bug fortran/36705] New: Procedure pointers with attributes statements burnus at gcc dot gnu dot org
2008-08-14 17:12 ` [Bug fortran/36705] " janus at gcc dot gnu dot org
@ 2008-08-14 21:18 ` janus at gcc dot gnu dot org
2008-08-14 21:22 ` janus at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: janus at gcc dot gnu dot org @ 2008-08-14 21:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from janus at gcc dot gnu dot org 2008-08-14 21:17 -------
Subject: Bug 36705
Author: janus
Date: Thu Aug 14 21:15:59 2008
New Revision: 139116
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139116
Log:
2008-08-14 Janus Weil <janus@gcc.gnu.org>
PR fortran/36705
* symbol.c (check_conflict): Move conflict checks for (procedure,save)
and (procedure,intent) to resolve_fl_procedure.
* resolve.c (resolve_fl_procedure): Ditto.
2008-08-14 Janus Weil <janus@gcc.gnu.org>
PR fortran/36705
* gfortran.dg/argument_checking_7.f90: Modified.
* gfortran.dg/conflicts.f90: Modified.
* gfortran.dg/proc_decl_1.f90: Modified.
* gfortran.dg/proc_ptr_9.f90: New.
Added:
trunk/gcc/testsuite/gfortran.dg/proc_ptr_9.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/resolve.c
trunk/gcc/fortran/symbol.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/argument_checking_7.f90
trunk/gcc/testsuite/gfortran.dg/conflicts.f90
trunk/gcc/testsuite/gfortran.dg/proc_decl_1.f90
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36705
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/36705] Procedure pointers with attributes statements
2008-07-02 20:44 [Bug fortran/36705] New: Procedure pointers with attributes statements burnus at gcc dot gnu dot org
2008-08-14 17:12 ` [Bug fortran/36705] " janus at gcc dot gnu dot org
2008-08-14 21:18 ` janus at gcc dot gnu dot org
@ 2008-08-14 21:22 ` janus at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: janus at gcc dot gnu dot org @ 2008-08-14 21:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from janus at gcc dot gnu dot org 2008-08-14 21:20 -------
Fixed with r139116. Closing.
--
janus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36705
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-08-14 21:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-02 20:44 [Bug fortran/36705] New: Procedure pointers with attributes statements burnus at gcc dot gnu dot org
2008-08-14 17:12 ` [Bug fortran/36705] " janus at gcc dot gnu dot org
2008-08-14 21:18 ` janus at gcc dot gnu dot org
2008-08-14 21:22 ` janus 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).