public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/47168] New: Error with use-renaming
@ 2011-01-04 15:19 janus at gcc dot gnu.org
  2011-12-17 13:23 ` [Bug fortran/47168] " dominiq at lps dot ens.fr
  2011-12-19 20:51 ` burnus at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: janus at gcc dot gnu.org @ 2011-01-04 15:19 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47168

           Summary: Error with use-renaming
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: janus@gcc.gnu.org


Posted by James van Buskirk at c.l.f:

http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/4fbe901275607684


module m
   implicit none
   type t
      integer i
   end type t
end module m

module n
   use m, only: a=>t
   implicit none
   private
   public a
end module n

module oh
   use n
   use n, only: b=>a
   implicit none
   private
   public a, b
end module oh


>gfortran -c bug1.f90
bug1.f90:20.11:

   public a, b
           1
Error: Symbol 'a' at (1) has no IMPLICIT type



The thread contains some more test cases. All of them should be checked.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug fortran/47168] Error with use-renaming
  2011-01-04 15:19 [Bug fortran/47168] New: Error with use-renaming janus at gcc dot gnu.org
@ 2011-12-17 13:23 ` dominiq at lps dot ens.fr
  2011-12-19 20:51 ` burnus at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-12-17 13:23 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47168

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-12-17
     Ever Confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-12-17 13:21:29 UTC ---
See also pr51578.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug fortran/47168] Error with use-renaming
  2011-01-04 15:19 [Bug fortran/47168] New: Error with use-renaming janus at gcc dot gnu.org
  2011-12-17 13:23 ` [Bug fortran/47168] " dominiq at lps dot ens.fr
@ 2011-12-19 20:51 ` burnus at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-12-19 20:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47168

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |burnus at gcc dot gnu.org
         Resolution|                            |DUPLICATE

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-12-19 20:45:13 UTC ---
The program in comment 0 looks wrong to me:
   use n
   use n, only: b=>a
does not import "a" per paragraph 7 of Fortran 2008's "11.2.2
The USE statement and use association".

Thus, gfortran rightly complains about:
   public a, b
           1
Error: Symbol 'a' at (1) has no IMPLICIT type


In the thread, the example "bug1b.f90" (date: Jan 5, 7:36 am) is the same as PR
51578. All other examples are - valid or invalid - correctly handled by
gfortran.

Thus, I mark this PR as duplicate of PR 51578.

*** This bug has been marked as a duplicate of bug 51578 ***


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-19 20:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-04 15:19 [Bug fortran/47168] New: Error with use-renaming janus at gcc dot gnu.org
2011-12-17 13:23 ` [Bug fortran/47168] " dominiq at lps dot ens.fr
2011-12-19 20:51 ` burnus at gcc dot gnu.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).