On Wed, 04 Mar 2009, Pritpal Bedi wrote:

Hi,

> I have made this change in hbgtcore.c
> PHB_GT hb_gt_ItemBase( PHB_ITEM pItemGT )
> {
>    if( pItemGT )
>    {
>       void ** gtHolder = ( void ** ) hb_itemGetPtrGC( pItemGT, 
> hb_gt_Destructor );
>       PHB_GT pGT = NULL;
>       if( gtHolder )
>          pGT = ( PHB_GT ) *gtHolder;
>       if( pGT && HB_GTSELF_LOCK( pGT ) )
>          return pGT;
>       else
>          return NULL;
>    }
>    else
>    {
>       return NULL;
>    }
> }
> Can you review and commit. 
> All other compilers do not produce any errors
> while PellesC x86 GPF's if <pItemGT == NULL>.

I've just verified with PellesC 4.50.15 and it generates wrong code
for above function. I'll change the order of instruction in this function
as some type of workaround for it but it should be reported to POCC author.
It's serious bug.
Please be careful with this compiler. It's not the 1-st and probably not
the last bug found in this compiler during work on [x]Harbour code.
Which version do you use?

best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to