Menu

#50 Calling a function with itself as arguments causes coredump

closed-out-of-date
None
5
2001-11-05
2000-09-30
No

Date: Sat, 30 Sep 2000 10:21:40 -0700 (PDT)
From: Joshua Wise <wiseguy586@yahoo.com>
Reply-To: joshua@joshuawise.com

I have found a bug in SDCC.. SDCC will bomb with not a
fatal compiler error, but a Win32 BigRedX. 

Here is some code that will reproduce it:
void makecolor(int color, int delayt)
{
int i = 0;
color(color,color);
for (i=0;i!=145;i++)
{
delay(delayt);
line(i,0,i,160);
};
}

Yes, I know that I was the problem :< with the
color(color,color), but SDCC shouldn't crash.

Discussion

  • Michael Hope

    Michael Hope - 2001-11-05

    Logged In: YES
    user_id=373

    This is a canned message in response to all of the pre 2.96 open
    bugs. Could you please try and reproduce this under 2.96? gbdk
    2.96 is available from the gbdk download page or from
    http://gbdk.sourceforge.net/staging.

     
  • Michael Hope

    Michael Hope - 2001-11-05
    • priority: 1 --> 5
    • status: open --> closed-out-of-date
     

Log in to post a comment.