[cc65] internal compiler error

From: Groepaz <groepaz1gmx.net>
Date: 2004-09-12 04:58:00
#include <stdlib.h>

char test[10]={"test"};

int main(void)
{
	printf("\n>%s<\n",test);
}


groepaz@groepaz:~/Desktop/MooglyGuy> cl65 main.c -o test.prg
main.c(4): Warning: Converting pointer to integer without a cast
main.c(4): Internal compiler error:
Unknown constant type: 0x0040
Line: char test[10]={"test"};
cl65: Subprocess `cc65' aborted by signal 6
groepaz@groepaz:~/Desktop/MooglyGuy> cc65 --version
cc65 V2.10.5 (note: snapshot from a few days ago)
cc65: No input files

compiles with --ansi --pedantic -W and no warning with gcc, and
also works as expected. i think we had this kind of problem a
while ago already no? :=P

gpz

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Sep 12 05:07:37 2004

This archive was generated by hypermail 2.1.8 : 2004-09-12 05:07:46 CEST