Pelles C forum

Pelles C => Bug reports => Topic started by: bitcoin on May 16, 2021, 05:32:11 PM

Title: Error SEH (destroy_x86_index_asgn() )
Post by: bitcoin on May 16, 2021, 05:32:11 PM
Hello,
I research some error (?)

Code: [Select]
#include <stdio.h>
#include <windows.h>

int main(int argc,char *argv[])
{
int a = 3;

//return 3;

__try {
a = 0;
puts("try block");
}


__except(EXCEPTION_EXECUTE_HANDLER)
{
puts("except block");
}
    return 0;
}

if you uncomment return 3 , it fails in compilation with 'fatal error: Internal error: destroy_x86_index_asgn().'
Title: Re: Error SEH (destroy_x86_index_asgn() )
Post by: Pelle on May 16, 2021, 09:10:43 PM
compiler version?
Title: Re: Error SEH (destroy_x86_index_asgn() )
Post by: frankie on May 16, 2021, 09:56:15 PM
Works in version 10 for me. Should be an older one.
Title: Re: Error SEH (destroy_x86_index_asgn() )
Post by: bitcoin on May 17, 2021, 01:16:42 AM
compiler version?
version 9
so, sorry if it already fixed
Title: Re: Error SEH (destroy_x86_index_asgn() )
Post by: Pelle on May 17, 2021, 04:00:00 PM
The internal representation of SEH code changed a lot between v9 and v10, so I guess this was "fixed" by new code.