public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/28849]  New: Missed array shape violation with RESHAPE despite -fbounds-check
@ 2006-08-25 20:39 anlauf at gmx dot de
  2006-08-25 20:41 ` [Bug fortran/28849] " anlauf at gmx dot de
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: anlauf at gmx dot de @ 2006-08-25 20:39 UTC (permalink / raw)
  To: gcc-bugs

The assignment of a RESHAPE()d array does not trigger
a run-time error with bounds-checking turned on.

% gfortran -O0 -g -fbounds-check gfcbug39_bounds_check.f90 && ./a.out
 Assignments with correct shapes after RESHAPE...
 a(:,1) =   1.000000    
 b(:,1) =   1.000000       2.000000    
 ...and with wrong shape (should fail with bounds checking on)
 a(:,1) =   1.000000    
 b(:,1) =   1.000000       2.000000    
 Must have missed an array bound violation after RESHAPE...


See the attached sample program for details.

Cheers,
-ha


-- 
           Summary: Missed array shape violation with RESHAPE despite -
                    fbounds-check
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anlauf at gmx dot de
  GCC host triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2009-04-04 18:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-25 20:39 [Bug fortran/28849] New: Missed array shape violation with RESHAPE despite -fbounds-check anlauf at gmx dot de
2006-08-25 20:41 ` [Bug fortran/28849] " anlauf at gmx dot de
2006-10-02 11:54 ` fxcoudert at gcc dot gnu dot org
2006-10-11 13:17 ` fxcoudert at gcc dot gnu dot org
2006-10-11 13:58 ` anlauf at gmx dot de
2006-11-08 19:44 ` burnus at gcc dot gnu dot org
2006-11-08 20:08 ` burnus at gcc dot gnu dot org
2006-11-08 20:48 ` burnus at gcc dot gnu dot org
2007-01-02 14:30 ` fxcoudert at gcc dot gnu dot org
2009-04-04 18:30 ` dfranke 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).