public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/29643] New: Fortran 2003: Support USE with rename-list (local-name => use-name)
@ 2006-10-30 9:49 burnus at gcc dot gnu dot org
2006-10-30 12:16 ` [Bug fortran/29643] " fxcoudert at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: burnus at gcc dot gnu dot org @ 2006-10-30 9:49 UTC (permalink / raw)
To: gcc-bugs
Supported by, e.g., ifort and sunf95. (Not yet by g95 and NAG f95.)
Example:
----------------------
module test
implicit none
real,parameter :: pi = 3.1415926535897932385
end module test
program usetest
use :: test, mypi => pi
real :: pi
pi = 3.0
print *, mypi, pi ! Shall print "3.1415927 3.0"
end program usetest
----------------------
See Fortran 2003:
"11.2.1 The USE statement and use association"
"
R1109 use-stmt is USE [ [ , module-nature ] :: ] module-name [ , rename-list ]
or USE [ [ , module-nature ] :: ] module-name , ONLY : [ only-list ]
R1111 rename is local-name => use-name
or OPERATOR (local-defined-operator) => OPERATOR (use-defined-operator)
R1112 only is generic-spec
or only-use-name
or rename"
--
Summary: Fortran 2003: Support USE with rename-list (local-name
=> use-name)
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: enhancement
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=29643
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug fortran/29643] Fortran 2003: Support USE with rename-list (local-name => use-name)
2006-10-30 9:49 [Bug fortran/29643] New: Fortran 2003: Support USE with rename-list (local-name => use-name) burnus at gcc dot gnu dot org
@ 2006-10-30 12:16 ` fxcoudert at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-10-30 12:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from fxcoudert at gcc dot gnu dot org 2006-10-30 12:16 -------
The rename-list works, it's only the F2003 "USE ::" that prevents it in your
example. This is already tracked by PR 25707, and I submitted a patch to fix
this (see http://gcc.gnu.org/ml/gcc-patches/2006-10/msg01539.html).
*** This bug has been marked as a duplicate of 25707 ***
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29643
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-30 12:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-30 9:49 [Bug fortran/29643] New: Fortran 2003: Support USE with rename-list (local-name => use-name) burnus at gcc dot gnu dot org
2006-10-30 12:16 ` [Bug fortran/29643] " fxcoudert 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).