https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64187
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
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.
