CVF bug ?

From: B52B (B52B_at_pl.pl.pl)
Date: 09/27/04


Date: Mon, 27 Sep 2004 08:35:13 +0200

Hi,

   It seems that the latest version of CVF 6.6C3 doesn't
support correctly array slices. Since this compiler is still very
popular and not supported I decided to warn other users.

program test
  implicit none
  real, dimension(:), pointer :: a_ptr => null(), b_ptr=null()

  allocate (a_ptr(1:10))
  a_ptr = 1.0

  b_ptr => a(::2)

  print *, size(b_ptr) ! error CVF prints 10 instead of 5

end program test

Regards,
B52B



Relevant Pages

  • Re: CVF bug ?
    ... > support correctly array slices. ... > popular and not supported I decided to warn other users. ... > end program test ... I even wonder if this program should pass the compiler at all. ...
    (comp.lang.fortran)
  • Re: CVF bug ?
    ... >>support correctly array slices. ... BTW After correction it clearly shows that the latest CVF has a serious bug. ... >>end program test ... > I even wonder if this program should pass the compiler at all. ...
    (comp.lang.fortran)
  • Re: CVF bug ?
    ... The compiler after update doesn't support correctly array slices. ... The problem has been reproduced on Windows NT and Windows 2000 ... end program test ...
    (comp.lang.fortran)