Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: brian.corriveau at ericsson dot com
Created attachment 34193
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34193&action=edit
sample that produces segmentation fault
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"
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