public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/35732]  New: -fbounds-check: LHS/RHS size mismatch: Misleading error message
@ 2008-03-28 14:55 burnus at gcc dot gnu dot org
  2008-04-06 12:43 ` [Bug fortran/35732] " fxcoudert at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-03-28 14:55 UTC (permalink / raw)
  To: gcc-bugs

For

integer :: a(2)
integer, volatile :: i
i = 1
 a(1:i) = a(1:2)
end

The message is misleading:

At line 4 of file aa.f90
Fortran runtime error: Array bound mismatch, size mismatch for dimension 1 of
array 'a' (0/1)

ISSUE:
  The size should be "1/2" and not "0/1" (For a zero-sized array the output is
even "-1").


-- 
           Summary: -fbounds-check: LHS/RHS size mismatch: Misleading error
                    message
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org
OtherBugsDependingO 27766
             nThis:


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


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

end of thread, other threads:[~2009-08-23  8:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-28 14:55 [Bug fortran/35732] New: -fbounds-check: LHS/RHS size mismatch: Misleading error message burnus at gcc dot gnu dot org
2008-04-06 12:43 ` [Bug fortran/35732] " fxcoudert at gcc dot gnu dot org
2009-01-03 23:53 ` dfranke at gcc dot gnu dot org
2009-04-26 19:54 ` dominiq at lps dot ens dot fr
2009-04-26 21:32 ` dominiq at lps dot ens dot fr
2009-04-26 21:51 ` burnus at gcc dot gnu dot org
2009-04-27  6:32 ` dominiq at lps dot ens dot fr
2009-04-27  8:21 ` dominiq at lps dot ens dot fr
2009-04-28 12:48 ` dominiq at lps dot ens dot fr
2009-05-25  3:07 ` jvdelisle at gcc dot gnu dot org
2009-08-22 22:07 ` dominiq at lps dot ens dot fr
2009-08-23  8:54 ` burnus 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).