https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89667
Bug ID: 89667 Summary: initializers for character string arrays (char *[]) appear to reside in protected storage Product: gcc Version: 7.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: rick at regreer dot net Target Milestone: --- Created attachment 45943 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45943&action=edit See description of bug This string is writeable: char foo[] = "foo': This one is not: char *foo[] = { "foo" }; Attachment includes source for a simple demonstration program "bug,c", with preprocessed source (the only include file is "stdio.h), output of "uname -a" and "gcc -v" appended as comments.