Pelles C forum

Pelles C => Bug reports => Topic started by: iZzz32 on December 04, 2007, 05:56:33 PM

Title: Internal error (is it a bug?)
Post by: iZzz32 on December 04, 2007, 05:56:33 PM
Code: [Select]
typedef int (foo)(int);

int main(void)
{
    foo bar = baz; // I know -- this is an error, I missed '*' before 'bar'.
    return 0;
}
produces the following messages:
Code: [Select]
test.c(13): error #2043: Illegal initialization of 'extern bar'.           <- OK.
test.c(13): error #2031: Addressable object required.                      <- What does it mean?
test.c(13): fatal error: Internal error: 'Access violation' at 0x0041701d. <- Is it a bug?
Title: Re: Internal error (is it a bug?)
Post by: DMac on December 04, 2007, 10:50:24 PM
Code: [Select]
typedef int (*foo)(int); // declared function pointer to point to an object's address

int baz (int i){return 0;} // declare an addressable object

int main(void)
{
    foo bar = baz; // now the symbol baz is an addressable object and foo points to it
    return 0;
}
Title: Re: Internal error (is it a bug?)
Post by: Pelle on December 05, 2007, 08:13:44 AM
A bug, I guess; can happen when the compile has already failed, so no show-stopper, but obviously looks better if it doesn't happen. Anyway, it seems I have already fixed this in the new version...
Title: Re: Internal error (is it a bug?)
Post by: AlexN on December 05, 2007, 08:27:01 AM
Anyway, it seems I have already fixed this in the new version...

Witch new version?  :)
Title: Re: Internal error (is it a bug?)
Post by: Stefan Pendl on December 05, 2007, 09:47:56 AM
Witch new version?  :)
The one Pelle is currently working on, which will support x64 too.
Title: Re: Internal error (is it a bug?)
Post by: Pelle on December 05, 2007, 10:15:48 AM
Yup. I'm on the final 5% - which seems to take the 'usual' 95% of the time...  ::)
Title: Re: Internal error (is it a bug?)
Post by: Christian on December 05, 2007, 10:29:29 AM
I am looking forward this new version  ;D

Pelle, could you tell something about the planned changes within the announcements?
Title: Re: Internal error (is it a bug?)
Post by: Pelle on December 05, 2007, 04:34:25 PM
Maybe easier to list what hasn't change...  ::)

Here is a partial list...
* support for AMD64/X64/X86-64/whatever you like to call it... (obviously...)
* no support for Windows 9X in POIDE, and probably most tools except POLINK & POLIB...
* support for C99 complex math...
* support for "safer" C runtime functions from ISO TR24731-1...
* basic "locale" support...
* some 30 -40 new compiler intrinsic functions...
* Windows Vista support...
Title: Re: Internal error (is it a bug?)
Post by: ssb on December 06, 2007, 09:47:26 AM
* Windows Vista support...

Great! I was looking for that. I've experienced too many issues with IDE since I've installed Vista.