[Bug c/64187] Writing to a char array cast from a char * causes a segmentation fault

2014-12-04 Thread brian.corriveau at ericsson dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64187 --- Comment #3 from Brian --- Thanks for the speedy reply. I just added a comment on the bug. Maybe -Wall should catch this kind of thing? thanks again brian pinskia at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6418

[Bug c/64187] Writing to a char array cast from a char * causes a segmentation fault

2014-12-04 Thread brian.corriveau at ericsson dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64187 --- Comment #2 from Brian --- (In reply to Andrew Pinski from comment #1) > char *test = "this is a test"; > > > This is a string literal so it stored in constant memory and which is why > you are getting a segfault. I was thinking "test"

[Bug c/64187] Writing to a char array cast from a char * causes a segmentation fault

2014-12-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64187 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---