Path: utzoo!utgpu!water!watmath!watcgl!watmum!rmariani From: rmariani@watmum.waterloo.edu (Rico Mariani) Newsgroups: comp.sys.amiga Subject: bug of the day (Aztec 3.4) Message-ID: <4198@watcgl.waterloo.edu> Date: 28 Apr 88 16:33:54 GMT Sender: daemon@watcgl.waterloo.edu Distribution: na Lines: 47 main() { printf("This is a test" #line 20 "glorp" ); printf("That was a test\n"); } This works fine if the #line is not present.... but it generates the following code otherwise: ;:ts=8 ;main() ;{ public _main _main: link a5,#.2 movem.l .3,-(sp) ; printf("This is a test" ;#line 20 "glorp" ; ); pea .1+14 <---- PUSHES THE WRONG ADDRESS jsr _printf add.w #4,sp ; printf("That was a test\n"); pea .1+15 jsr _printf add.w #4,sp ;} .4 movem.l (sp)+,.3 unlk a5 rts .2 equ 0 .3 reg .1 dc.b 84,104,105,115,32,105,115,32,97,32,116,101,115,116,0 dc.b 84,104,97,116,32,119,97,115,32,97,32,116,101,115,116 dc.b 10,0 ds 0 ; public _printf public .begin dseg end -Rico