NO

Author Topic: Internal error (is it a bug?)  (Read 5296 times)

iZzz32

  • Guest
Internal error (is it a bug?)
« 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?

Offline DMac

  • Member
  • *
  • Posts: 272
Re: Internal error (is it a bug?)
« Reply #1 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;
}
« Last Edit: December 04, 2007, 10:54:57 PM by DMac »
No one cares how much you know,
until they know how much you care.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Internal error (is it a bug?)
« Reply #2 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...
/Pelle

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: Internal error (is it a bug?)
« Reply #3 on: December 05, 2007, 08:27:01 AM »
Anyway, it seems I have already fixed this in the new version...

Witch new version?  :)
best regards
 Alex ;)

Offline Stefan Pendl

  • Global Moderator
  • Member
  • *****
  • Posts: 582
    • Homepage
Re: Internal error (is it a bug?)
« Reply #4 on: December 05, 2007, 09:47:56 AM »
Witch new version?  :)
The one Pelle is currently working on, which will support x64 too.
---
Stefan

Proud member of the UltraDefrag Development Team

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Internal error (is it a bug?)
« Reply #5 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...  ::)
/Pelle

Offline Christian

  • Administrator
  • Member
  • *****
  • Posts: 142
    • http://www.pellesc.de
Re: Internal error (is it a bug?)
« Reply #6 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?
www.pellesc.de - German PellesC mirror (now available in german and english)

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Internal error (is it a bug?)
« Reply #7 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...
/Pelle

ssb

  • Guest
Re: Internal error (is it a bug?)
« Reply #8 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.