public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/21370] New: gfortran: TARGET attribute for dummy argument and declaration order
@ 2005-05-03 20:50 anlauf at hep dot tu-darmstadt dot de
2005-05-03 21:54 ` [Bug fortran/21370] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 4+ messages in thread
From: anlauf at hep dot tu-darmstadt dot de @ 2005-05-03 20:50 UTC (permalink / raw)
To: gcc-bugs
Hi,
the following code fails to compile unless the two marked lines are interchanged:
subroutine gfcbug27 (x)
real, intent(inout) :: x(:)
real :: tmp(size (x,1)) ! gfc produces an error unless
target :: x ! these 2 lines interchanged
real, pointer :: p(:)
p => x(:)
end subroutine gfcbug27
I get:
In file gfcbug27.f90:5
target :: x ! these 2 lines interchanged
1
Error: Cannot change attributes of symbol at (1) after it has been used
In file gfcbug27.f90:8
p => x(:)
1
Error: Pointer assignment target is neither TARGET nor POINTER at (1)
Cheers,
-ha
--
Summary: gfortran: TARGET attribute for dummy argument and
declaration order
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at hep dot tu-darmstadt dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21370
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/21370] gfortran: TARGET attribute for dummy argument and declaration order
2005-05-03 20:50 [Bug fortran/21370] New: gfortran: TARGET attribute for dummy argument and declaration order anlauf at hep dot tu-darmstadt dot de
@ 2005-05-03 21:54 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-03 21:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-03 21:54 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2005-05-03 21:54:24
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21370
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/21370] gfortran: TARGET attribute for dummy argument and declaration order
[not found] <bug-21370-6318@http.gcc.gnu.org/bugzilla/>
2006-11-07 17:33 ` pault at gcc dot gnu dot org
@ 2006-11-12 7:42 ` pault at gcc dot gnu dot org
1 sibling, 0 replies; 4+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-11-12 7:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pault at gcc dot gnu dot org 2006-11-12 07:42 -------
Fixed on trunk and 4.2. 4.1 will follow next weekend.
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=21370
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/21370] gfortran: TARGET attribute for dummy argument and declaration order
[not found] <bug-21370-6318@http.gcc.gnu.org/bugzilla/>
@ 2006-11-07 17:33 ` pault at gcc dot gnu dot org
2006-11-12 7:42 ` pault at gcc dot gnu dot org
1 sibling, 0 replies; 4+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-11-07 17:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pault at gcc dot gnu dot org 2006-11-07 17:32 -------
I posted a fix this afternoon - subject to nobody thinking of an objection to
removing symbol.c(check_done), this PR will be fixed in short order.
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|2006-10-30 08:33:55 |2006-11-07 17:32:52
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21370
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-11-12 7:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-03 20:50 [Bug fortran/21370] New: gfortran: TARGET attribute for dummy argument and declaration order anlauf at hep dot tu-darmstadt dot de
2005-05-03 21:54 ` [Bug fortran/21370] " pinskia at gcc dot gnu dot org
[not found] <bug-21370-6318@http.gcc.gnu.org/bugzilla/>
2006-11-07 17:33 ` pault at gcc dot gnu dot org
2006-11-12 7:42 ` 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).