#26 Bugs in IF

closed-fixed
None
7
2003-04-12
2003-03-16
Hudson Reis
No

Hi,

This is a bug that I found in IF verb.

Thanks.
Hudson

* Bug 1.
When is used the number 09 as a reference delimiter,
the compiler show the following error message:

procedure division.
if ws-Name(1:09) equal "Hudson"
*> if ws-Name(1:9) equal "Hudson"
*> if ws-Name(1:ind) equal "Hudson"
*> if ws-Name(1:10) equal "Hudson"
display "Test ok"
end-if

hudson@mynotebook:~/prj/tc/src/cui10$ htcobol if00
if00.s: Assembler messages:
if00.s:71: Error: junk `9' after expression
hudson@mynotebook:~/prj/tc/src/cui10$ exit

Example programs: if00.cob.

Discussion

  • Hudson Reis

    Hudson Reis - 2003-03-16

    IF example bugs

     
  • Bernard Giroud

    Bernard Giroud - 2003-03-26

    Logged In: YES
    user_id=1011

    The literal 09 is used "literaly" and when in assembler,
    because it starts with a 0, it is treated as octal. Will be
    corrected.

     
  • Bernard Giroud

    Bernard Giroud - 2003-03-26
    • priority: 5 --> 7
    • assigned_to: nobody --> bgiroud
     
  • Bernard Giroud

    Bernard Giroud - 2003-03-26

    Logged In: YES
    user_id=1011

    The literal 09 is used "literaly" and when in assembler,
    because it starts with a 0, it is treated as octal. Will be
    corrected.

     
  • Bernard Giroud

    Bernard Giroud - 2003-04-12
    • status: open --> closed-fixed
     
  • Bernard Giroud

    Bernard Giroud - 2003-04-12

    Logged In: YES
    user_id=1011

    Fixed.

     

Log in to post a comment.