public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/44744]  New: [4.6 Regression] Missed runtime error after revision 161550
@ 2010-07-01 13:51 dominiq at lps dot ens dot fr
  2010-07-14 17:42 ` [Bug fortran/44744] Missing -fcheck=bounds diagnostic for function assignment with tmp array burnus at gcc dot gnu dot org
  0 siblings, 1 reply; 3+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-07-01 13:51 UTC (permalink / raw)
  To: gcc-bugs

When compiled with -fcheck=bounds, the following test

 integer :: a(-4:1), b(0:4)
 b = 5
 i = 0
 a(i:1) = f(b)
contains
  function f(x)
    integer :: x(:),f(size(x))
    f = x
  end function
end

used to give the runtime error

At line 14 of file pr31538_db.f90
Fortran runtime error: Dimension 1 of array 'f' has extent 5 instead of 2

This is no longer the case after revision 161550.


-- 
           Summary: [4.6 Regression] Missed runtime error after revision
                    161550
           Product: gcc
           Version: 4.6.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=44744


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

end of thread, other threads:[~2024-05-18 16:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-44744-4@http.gcc.gnu.org/bugzilla/>
2024-05-18 15:45 ` [Bug fortran/44744] Missing -fcheck=bounds diagnostic for function assignment with tmp array burnus at gcc dot gnu.org
2024-05-18 16:01 ` burnus at gcc dot gnu.org
2010-07-01 13:51 [Bug fortran/44744] New: [4.6 Regression] Missed runtime error after revision 161550 dominiq at lps dot ens dot fr
2010-07-14 17:42 ` [Bug fortran/44744] Missing -fcheck=bounds diagnostic for function assignment with tmp array 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).