Skip to content

Out of bounds errors in testing routines chet21.f and chpt21.f #333

Closed

Description

@Dichloromethane

Hi,

translating lapack 3.8.0 with a recent gfortran, I get the warnings

chet21.f:309:33:

307 | DO 20 J = 1, N - 1
| 2
308 | CALL CHER2( CUPLO, N, -CMPLX( E( J ) ), U( 1, J ), 1,
309 | $ U( 1, J-1 ), 1, WORK, N )
| 1
Warnung: Feldreferenz bei (1) ist außerhalb der Grenzen (0 < 1) in Schleife, die bei (2) beginnt

chpt21.f:328:33:

326 | DO 20 J = 1, N - 1
| 2
327 | CALL CHPR2( CUPLO, N, -CMPLX( E( J ) ), U( 1, J ), 1,
328 | $ U( 1, J-1 ), 1, WORK )
| 1
Warnung: Feldreferenz bei (1) ist außerhalb der Grenzen (0 < 1) in Schleife, die bei (2) beginnt

Message in English:

Array reference at (1) out of bounds (0 < 1) in loop beginning at (2).

The problem is the out-of-bounds access to U(1,0) for J=1.

Activity

  1. Dichloromethane commented on Apr 19, 2019

    @Dichloromethane
    Author

    Same problems:

    zhet21.f:309:33:

    307 | DO 20 J = 1, N - 1
    | 2
    308 | CALL ZHER2( CUPLO, N, -DCMPLX( E( J ) ), U( 1, J ), 1,
    309 | $ U( 1, J-1 ), 1, WORK, N )
    | 1
    Warnung: Feldreferenz bei (1) ist außerhalb der Grenzen (0 < 1) in Schleife, die bei (2) beginnt
    gfortran -O2 -frecursive -g -flto -c -o zlctes.o zlctes.f
    gfortran -O2 -frecursive -g -flto -c -o zlctsx.o zlctsx.f
    zhpt21.f:328:33:

    326 | DO 20 J = 1, N - 1
    | 2
    327 | CALL ZHPR2( CUPLO, N, -DCMPLX( E( J ) ), U( 1, J ), 1,
    328 | $ U( 1, J-1 ), 1, WORK )
    | 1
    Warnung: Feldreferenz bei (1) ist außerhalb der Grenzen (0 < 1) in Schleife, die bei (2) beginnt

  2. added a commit that references this issue on Jul 7, 2019
  3. added a commit that references this issue on May 23, 2021
    8db422d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions