FIX: Concatenation of Substring in IF StatementLast reviewed: September 11, 1997Article ID: Q68223 |
5.00 5.10 | 5.00 5.10
MS-DOS | OS/2kbtool kbfixlist kbbuglist The information in this article applies to:
SYMPTOMSThe code example below causes a Protection Violation when run under OS/2 and bad results when run under MS-DOS. Under MS-DOS, it prints
NO YESinstead of printing
YES YES STATUSMicrosoft has confirmed this to be a bug in the products listed above. This problem was corrected in FORTRAN PowerStation, version 1.0.
MORE INFORMATIONThe following sample code can be used to demonstrate the problem.
Sample code
character*2 r/'AA'/ n=0c if ('BBB'.gt.r(1:n+2)//'A') then write (*,*) 'YES' else write (*,*) 'NO' endifc if ('BBB'.gt.r(1:2)//'A') then write (*,*) 'YES' else write (*,*) 'NO' endif end |
Additional reference words: 5.00 5.10 buglist5.00 buglist5.10 fixlist1.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |