[Issue 23075] New: global const string definitions should go in readonly segment

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 1 02:02:30 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23075

          Issue ID: 23075
           Summary: global const string definitions should go in readonly
                    segment
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: bugzilla at digitalmars.com

const char s[6] = "hello";

should put `s` into the readonly section, instead it gets placed in the regular
mutable data section.

--


More information about the Digitalmars-d-bugs mailing list