public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/37193]  New: "USE mod, ONLY: i, i=>j" does not import "i"
@ 2008-08-21 19:10 burnus at gcc dot gnu dot org
  2008-08-22 12:00 ` [Bug fortran/37193] " jv244 at cam dot ac dot uk
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-08-21 19:10 UTC (permalink / raw)
  To: gcc-bugs

The following program is valid and compiles with g95, f95, ifort, ...
with gfortran it fails with:

i = 4
1
Error: Symbol 'i' at (1) has no IMPLICIT type


module m
  implicit none
  integer :: i
end module m

use m, only: i, j=>i, k=>i
implicit none
j = 5
k = 3
i = 4
if(i /= k .or. j /= k .or. i /= 4) stop 'ERROR'
end


-- 
           Summary: "USE mod, ONLY: i, i=>j" does not import "i"
           Product: gcc
           Version: 4.4.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
OtherBugsDependingO 32834
             nThis:


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


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

* [Bug fortran/37193] "USE mod, ONLY: i, i=>j" does not import "i"
  2008-08-21 19:10 [Bug fortran/37193] New: "USE mod, ONLY: i, i=>j" does not import "i" burnus at gcc dot gnu dot org
@ 2008-08-22 12:00 ` jv244 at cam dot ac dot uk
  2008-08-29  4:43 ` [Bug fortran/37193] [4.3/4.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-08-22 12:00 UTC (permalink / raw)
  To: gcc-bugs



-- 

jv244 at cam dot ac dot uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-08-22 11:58:44
               date|                            |


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


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

* [Bug fortran/37193] [4.3/4.4 Regression] "USE mod, ONLY: i, i=>j" does not import "i"
  2008-08-21 19:10 [Bug fortran/37193] New: "USE mod, ONLY: i, i=>j" does not import "i" burnus at gcc dot gnu dot org
  2008-08-22 12:00 ` [Bug fortran/37193] " jv244 at cam dot ac dot uk
@ 2008-08-29  4:43 ` pinskia at gcc dot gnu dot org
  2008-08-29 12:34 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-29  4:43 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
            Summary|[4.3, 4.4 Regression] "USE  |[4.3/4.4 Regression] "USE
                   |mod, ONLY: i, i=>j" does not|mod, ONLY: i, i=>j" does not
                   |import "i"                  |import "i"
   Target Milestone|---                         |4.3.3


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


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

* [Bug fortran/37193] [4.3/4.4 Regression] "USE mod, ONLY: i, i=>j" does not import "i"
  2008-08-21 19:10 [Bug fortran/37193] New: "USE mod, ONLY: i, i=>j" does not import "i" burnus at gcc dot gnu dot org
  2008-08-22 12:00 ` [Bug fortran/37193] " jv244 at cam dot ac dot uk
  2008-08-29  4:43 ` [Bug fortran/37193] [4.3/4.4 Regression] " pinskia at gcc dot gnu dot org
@ 2008-08-29 12:34 ` jakub at gcc dot gnu dot org
  2008-08-30 14:22 ` domob at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-08-29 12:34 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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


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

* [Bug fortran/37193] [4.3/4.4 Regression] "USE mod, ONLY: i, i=>j" does not import "i"
  2008-08-21 19:10 [Bug fortran/37193] New: "USE mod, ONLY: i, i=>j" does not import "i" burnus at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-08-29 12:34 ` jakub at gcc dot gnu dot org
@ 2008-08-30 14:22 ` domob at gcc dot gnu dot org
  2008-09-01 13:45 ` domob at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: domob at gcc dot gnu dot org @ 2008-08-30 14:22 UTC (permalink / raw)
  To: gcc-bugs



-- 

domob at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |domob at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-08-22 11:58:44         |2008-08-30 14:21:18
               date|                            |


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


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

* [Bug fortran/37193] [4.3/4.4 Regression] "USE mod, ONLY: i, i=>j" does not import "i"
  2008-08-21 19:10 [Bug fortran/37193] New: "USE mod, ONLY: i, i=>j" does not import "i" burnus at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-08-30 14:22 ` domob at gcc dot gnu dot org
@ 2008-09-01 13:45 ` domob at gcc dot gnu dot org
  2008-09-03 12:28 ` domob at gcc dot gnu dot org
  2008-09-03 12:29 ` domob at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: domob at gcc dot gnu dot org @ 2008-09-01 13:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from domob at gcc dot gnu dot org  2008-09-01 13:44 -------
Subject: Bug 37193

Author: domob
Date: Mon Sep  1 13:43:10 2008
New Revision: 139866

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139866
Log:
2008-09-01  Daniel Kraft  <d@domob.eu>

        PR fortran/37193
        * module.c (read_module): Initialize use_only flag on used symbols.

2008-09-01  Daniel Kraft  <d@domob.eu>

        PR fortran/37193
        * gfortran.dg/use_rename_4.f90: New test.
        * gfortran.dg/use_rename_5.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/use_rename_4.f90
    trunk/gcc/testsuite/gfortran.dg/use_rename_5.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/module.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/37193] [4.3/4.4 Regression] "USE mod, ONLY: i, i=>j" does not import "i"
  2008-08-21 19:10 [Bug fortran/37193] New: "USE mod, ONLY: i, i=>j" does not import "i" burnus at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-09-01 13:45 ` domob at gcc dot gnu dot org
@ 2008-09-03 12:28 ` domob at gcc dot gnu dot org
  2008-09-03 12:29 ` domob at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: domob at gcc dot gnu dot org @ 2008-09-03 12:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from domob at gcc dot gnu dot org  2008-09-03 12:27 -------
Subject: Bug 37193

Author: domob
Date: Wed Sep  3 12:25:57 2008
New Revision: 139936

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139936
Log:
2008-08-30  Daniel Kraft  <d@domob.eu>

        PR fortran/37193
        * module.c (read_module): Initialize use_only flag on used symbols.

2008-08-30  Daniel Kraft  <d@domob.eu>

        PR fortran/37193
        * gfortran.dg/use_rename_4.f90: New test.
        * gfortran.dg/use_rename_5.f90: New test.

2008-06-24  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/36371
        * gfortran.dg/data_array_5.f90: New test.

2008-06-24  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/36371
        * expr.c (gfc_check_assign):  Change message and locus for
        error when conform == 0.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/data_array_5.f90
    branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/use_rename_4.f90
    branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/use_rename_5.f90
Modified:
    branches/gcc-4_3-branch/gcc/fortran/ChangeLog
    branches/gcc-4_3-branch/gcc/fortran/expr.c
    branches/gcc-4_3-branch/gcc/fortran/module.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/37193] [4.3/4.4 Regression] "USE mod, ONLY: i, i=>j" does not import "i"
  2008-08-21 19:10 [Bug fortran/37193] New: "USE mod, ONLY: i, i=>j" does not import "i" burnus at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-09-03 12:28 ` domob at gcc dot gnu dot org
@ 2008-09-03 12:29 ` domob at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: domob at gcc dot gnu dot org @ 2008-09-03 12:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from domob at gcc dot gnu dot org  2008-09-03 12:28 -------
Fixed on 4.4 and 4.3.


-- 

domob at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2008-09-03 12:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-21 19:10 [Bug fortran/37193] New: "USE mod, ONLY: i, i=>j" does not import "i" burnus at gcc dot gnu dot org
2008-08-22 12:00 ` [Bug fortran/37193] " jv244 at cam dot ac dot uk
2008-08-29  4:43 ` [Bug fortran/37193] [4.3/4.4 Regression] " pinskia at gcc dot gnu dot org
2008-08-29 12:34 ` jakub at gcc dot gnu dot org
2008-08-30 14:22 ` domob at gcc dot gnu dot org
2008-09-01 13:45 ` domob at gcc dot gnu dot org
2008-09-03 12:28 ` domob at gcc dot gnu dot org
2008-09-03 12:29 ` domob 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).