public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/52668] New: Incorrect warning emitted by gfortran 4.7.0
@ 2012-03-22 15:18 arnaud02 at users dot sourceforge.net
  2012-03-22 16:25 ` [Bug fortran/52668] [4.7/4.8 Regression] Incorrect unused warning for USE associating variable in common block burnus at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: arnaud02 at users dot sourceforge.net @ 2012-03-22 15:18 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52668
           Summary: Incorrect warning emitted by gfortran 4.7.0
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: arnaud02@users.sourceforge.net


>cat qq.f
      module mm
      integer :: a, b
      common /mm1/ a, b
      end module mm
      program pp
      call aa()
      end program pp
      subroutine aa()
      use mm, only: a
      a = 1
      end subroutine aa
>/usr/local/gcc/gfortran470 -Wall qq.f
qq.f:9.9:

      use mm, only: a
         1
Warning: Unused module variable 'b' which has been explicitly imported at (1)
>/usr/local/gcc/gfortran470 --version | head -2
GNU Fortran (GCC) 4.7.0
Copyright (C) 2012 Free Software Foundation, Inc.

The warning is incorrect: in pp, b is *not* imported explicitly from mm. 
This is a regression with respect to gfortran 4.6.x.


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

* [Bug fortran/52668] [4.7/4.8 Regression] Incorrect unused warning for USE associating variable in common block
  2012-03-22 15:18 [Bug fortran/52668] New: Incorrect warning emitted by gfortran 4.7.0 arnaud02 at users dot sourceforge.net
@ 2012-03-22 16:25 ` burnus at gcc dot gnu.org
  2012-03-24 18:42 ` tkoenig at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-03-22 16:25 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |diagnostic
   Last reconfirmed|                            |2012-03-22
                 CC|                            |burnus at gcc dot gnu.org,
                   |                            |tkoenig at gcc dot gnu.org
     Ever Confirmed|0                           |1
            Summary|Incorrect warning emitted   |[4.7/4.8 Regression]
                   |by gfortran 4.7.0           |Incorrect unused warning
                   |                            |for USE associating
                   |                            |variable in common block
   Target Milestone|---                         |4.7.1


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

* [Bug fortran/52668] [4.7/4.8 Regression] Incorrect unused warning for USE associating variable in common block
  2012-03-22 15:18 [Bug fortran/52668] New: Incorrect warning emitted by gfortran 4.7.0 arnaud02 at users dot sourceforge.net
  2012-03-22 16:25 ` [Bug fortran/52668] [4.7/4.8 Regression] Incorrect unused warning for USE associating variable in common block burnus at gcc dot gnu.org
@ 2012-03-24 18:42 ` tkoenig at gcc dot gnu.org
  2012-04-04  9:43 ` arnaud02 at users dot sourceforge.net
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2012-03-24 18:42 UTC (permalink / raw)
  To: gcc-bugs

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |tkoenig at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2012-03-24 17:57:18 UTC ---
I have a patch.


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

* [Bug fortran/52668] [4.7/4.8 Regression] Incorrect unused warning for USE associating variable in common block
  2012-03-22 15:18 [Bug fortran/52668] New: Incorrect warning emitted by gfortran 4.7.0 arnaud02 at users dot sourceforge.net
  2012-03-22 16:25 ` [Bug fortran/52668] [4.7/4.8 Regression] Incorrect unused warning for USE associating variable in common block burnus at gcc dot gnu.org
  2012-03-24 18:42 ` tkoenig at gcc dot gnu.org
@ 2012-04-04  9:43 ` arnaud02 at users dot sourceforge.net
  2012-04-06 18:32 ` tkoenig at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: arnaud02 at users dot sourceforge.net @ 2012-04-04  9:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Arnaud Desitter <arnaud02 at users dot sourceforge.net> 2012-04-04 09:42:47 UTC ---
The patch posted at http://gcc.gnu.org/ml/fortran/2012-03/msg00124.html fixes
the problem.


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

* [Bug fortran/52668] [4.7/4.8 Regression] Incorrect unused warning for USE associating variable in common block
  2012-03-22 15:18 [Bug fortran/52668] New: Incorrect warning emitted by gfortran 4.7.0 arnaud02 at users dot sourceforge.net
                   ` (2 preceding siblings ...)
  2012-04-04  9:43 ` arnaud02 at users dot sourceforge.net
@ 2012-04-06 18:32 ` tkoenig at gcc dot gnu.org
  2012-04-07 19:59 ` [Bug fortran/52668] [4.7 " tkoenig at gcc dot gnu.org
  2012-04-07 20:01 ` tkoenig at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2012-04-06 18:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2012-04-06 18:31:19 UTC ---
Author: tkoenig
Date: Fri Apr  6 18:31:11 2012
New Revision: 186199

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186199
Log:
2012-04-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/52668
    * module.c:  Only mark symbols as use_only if they have been
    imported via an only list.

2012-04-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/52668
    * gfortran.dg/use_only_6.f90: New test.


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


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

* [Bug fortran/52668] [4.7 Regression] Incorrect unused warning for USE associating variable in common block
  2012-03-22 15:18 [Bug fortran/52668] New: Incorrect warning emitted by gfortran 4.7.0 arnaud02 at users dot sourceforge.net
                   ` (3 preceding siblings ...)
  2012-04-06 18:32 ` tkoenig at gcc dot gnu.org
@ 2012-04-07 19:59 ` tkoenig at gcc dot gnu.org
  2012-04-07 20:01 ` tkoenig at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2012-04-07 19:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2012-04-07 19:58:49 UTC ---
Author: tkoenig
Date: Sat Apr  7 19:58:43 2012
New Revision: 186214

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186214
Log:
2012-04-07  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/52668
    Backport from trunk
    * module.c:  Only mark symbols as use_only if they have been
    imported via an only list.

2012-04-07  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/52668
    Backport from trunk
    * gfortran.dg/use_only_6.f90: New test.


Added:
    branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/use_only_6.f90
Modified:
    branches/gcc-4_7-branch/gcc/fortran/ChangeLog
    branches/gcc-4_7-branch/gcc/fortran/module.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


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

* [Bug fortran/52668] [4.7 Regression] Incorrect unused warning for USE associating variable in common block
  2012-03-22 15:18 [Bug fortran/52668] New: Incorrect warning emitted by gfortran 4.7.0 arnaud02 at users dot sourceforge.net
                   ` (4 preceding siblings ...)
  2012-04-07 19:59 ` [Bug fortran/52668] [4.7 " tkoenig at gcc dot gnu.org
@ 2012-04-07 20:01 ` tkoenig at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2012-04-07 20:01 UTC (permalink / raw)
  To: gcc-bugs

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

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

--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2012-04-07 20:01:00 UTC ---
Fixed, closing.


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

end of thread, other threads:[~2012-04-07 20:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-22 15:18 [Bug fortran/52668] New: Incorrect warning emitted by gfortran 4.7.0 arnaud02 at users dot sourceforge.net
2012-03-22 16:25 ` [Bug fortran/52668] [4.7/4.8 Regression] Incorrect unused warning for USE associating variable in common block burnus at gcc dot gnu.org
2012-03-24 18:42 ` tkoenig at gcc dot gnu.org
2012-04-04  9:43 ` arnaud02 at users dot sourceforge.net
2012-04-06 18:32 ` tkoenig at gcc dot gnu.org
2012-04-07 19:59 ` [Bug fortran/52668] [4.7 " tkoenig at gcc dot gnu.org
2012-04-07 20:01 ` tkoenig 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).