public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/35234]  New: Undetected "use before definition".
@ 2008-02-17 15:45 dominiq at lps dot ens dot fr
  2008-03-16 13:47 ` [Bug fortran/35234] " dominiq at lps dot ens dot fr
  2009-03-28 13:39 ` fxcoudert at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: dominiq at lps dot ens dot fr @ 2008-02-17 15:45 UTC (permalink / raw)
  To: gcc-bugs

In the code from

http://groups.google.fr/group/comp.lang.fortran/browse_thread/thread/120303aae031b672/7dd83bc30a9f19a3#7dd83bc30a9f19a3

gfortran detect the problems coming from the undefined 'j', but not the fact
that 'df4_dxi'  is used before it is defined.  Am I missing a relevant option
or is it a missing feature/bug in gfortran/gcc?


-- 
           Summary: Undetected "use before definition".
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominiq at lps dot ens dot fr


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


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

* [Bug fortran/35234] Undetected "use before definition".
  2008-02-17 15:45 [Bug fortran/35234] New: Undetected "use before definition" dominiq at lps dot ens dot fr
@ 2008-03-16 13:47 ` dominiq at lps dot ens dot fr
  2009-03-28 13:39 ` fxcoudert at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: dominiq at lps dot ens dot fr @ 2008-03-16 13:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dominiq at lps dot ens dot fr  2008-03-16 13:46 -------
Reduced test case:

      program prandtl meyer 
      implicit none 
      integer :: i, j 
      integer, parameter :: imax = 100 
      integer, parameter :: jmax =  40 
      real, dimension(0:jmax,0:imax) :: f1, f1_bar
      do i = 0, imax-1 
         do j = 1, jmax-1 
            f1_bar(j,i+1) = f1(j,i)
         end do 
      end do 
      stop 
      end program prandtl meyer 

[ibook-dhum] f90/bug% gfc -O -Wuninitialized -Wall timing/prandtl_red.f
[ibook-dhum] f90/bug%

I think it is a duplicate of PR27120.


-- 


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


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

* [Bug fortran/35234] Undetected "use before definition".
  2008-02-17 15:45 [Bug fortran/35234] New: Undetected "use before definition" dominiq at lps dot ens dot fr
  2008-03-16 13:47 ` [Bug fortran/35234] " dominiq at lps dot ens dot fr
@ 2009-03-28 13:39 ` fxcoudert at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-03-28 13:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from fxcoudert at gcc dot gnu dot org  2009-03-28 13:39 -------
It's indeed a duplicate of 27120.

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


-- 

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=35234


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

end of thread, other threads:[~2009-03-28 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-17 15:45 [Bug fortran/35234] New: Undetected "use before definition" dominiq at lps dot ens dot fr
2008-03-16 13:47 ` [Bug fortran/35234] " dominiq at lps dot ens dot fr
2009-03-28 13:39 ` 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).