Pelles C forum

Pelles C => Bug reports => Topic started by: drakoh on April 29, 2005, 01:53:32 AM

Title: fatal error: Internal error: 'Access violation' at 0x0046026
Post by: drakoh on April 29, 2005, 01:53:32 AM
Hi !

here is a little piece of code that can fail the compiler:

01:typedef struct opcode {
02:   char* name;
03:   void (*func)();
04:} opcode;
05:
06:void nop() {
07:}
08:
09:opcode   opcodes[]={
10:/*000*/   {"nop",nop()}
11:};

this fail because it should be nop on line 10 and not nop()

hope it helps !
Title: fatal error: Internal error: 'Access violation' at 0x0046026
Post by: Pelle on April 29, 2005, 08:42:49 PM
Hello,

I get the same error here. Should be easy to track down and fix. Thanks for the report.

Pelle