'GOTO' bug!

Sun, 05 Oct 1997 23:57:02 +0800



The new GPC BETA (971001) for DJGPP has fixed a lot of bugs. Great work!!

Unfortunately, I found a new bug which only affects badly written programs
(So why did I find it ?!?!? :). 'GOTO' used in a unit crashes the compiler
with a SIGSEGV. Take a look at the code below:


Unit
    Goto_U;


Interface

Implementation

Procedure BugProcedure;
    Label
        BugLabel;
    Begin
        {$M BEFORE}
        Goto BugLabel;
        {$M AFTER}

    BugLabel:
    End;

End.


Cya L8r



 ________________________    e-mail: bernie@icenet.com.au
|  _)        | |                     ptschirrenb@cc.curtin.edu.au
|___)ernhard |_|schirren             tschirre@cs.curtin.edu.au
                             www:    www.geocities.com/CollegePark/Quad/8070/


Bernhard Tschirren (bernie@icenet.com.au)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es