BUG: Incorrect F2560 with Adjustable Sized Arrays and /4Yb
PSS ID Number: Q108287
Article last modified on 02-01-1994

1.00

MS-DOS


----------------------------------------------------------------------
The information in this article applies to:

 - Microsoft FORTRAN PowerStation for MS-DOS, version 1.0
----------------------------------------------------------------------

SYMPTOMS
========

Compiling an adjustable sized array with extended error handling (that is,
/4Yb) that uses an expression for a bound, incorrectly produces the
following error:

   error F2560: (array_name) : array bound used intrinsic call

RESOLUTION
==========

Do not use extended error handling when compiling adjustable sized arrays
that are dimensioned with an expression.

STATUS
======

Microsoft has confirmed this to be a problem in FORTRAN PowerStation
version 1.0 for MS-DOS. We are researching this problem and will post new
information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION
================

The sample program below demonstrates the problem when compiled with
FORTRAN PowerStation:

Sample Code
-----------

$debug
       SUBROUTINE TEST(N,X)
       INTEGER N
       REAL X((N+1)/2) ! Expression dimensions adjustable array X
       X((N+1)/2)=1
       RETURN
       END

Additional reference words: 1.00
KBCategory: Tls
KBSubcategory:

=============================================================================

Copyright Microsoft Corporation 1994.
