[Bug fortran/18315] missing error for incompatible array assignment involving lbound

rsandifo at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 13 08:34:00 GMT 2005


------- Additional Comments From rsandifo at gcc dot gnu dot org  2005-09-13 08:34 -------
After the patch for 18899, this now works for:

program main
  implicit none
  real :: a(0:9)
  integer :: bn(10)
  bn(1:1) = lbound(a)
  print *, bn(1)
end program main

but like FX says, we probably ought to report an error
for the mismatch in the original testcase.  Reclassifying
as a missing diagnostic bug.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
           Keywords|wrong-code                  |accepts-invalid
   Last reconfirmed|2005-05-08 17:28:58         |2005-09-13 08:34:24
               date|                            |
            Summary|wrong result for lbound with|missing error for
                   |single argument             |incompatible array
                   |                            |assignment involving lbound


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



More information about the Gcc-bugs mailing list