This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Internal error on char *const assign


The following program gives
gcc: Internal compiler error: program cc1 got fatal signal 6
when compiled with -O2 with egcs-1.0.3:

int
main(void)
{
    char *const s = "Hello!";
    s[0] = 0;

    return 0;
}


Zoli


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]