www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23075] New: global const string definitions should go in

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 puremagic.com
          Reporter: bugzilla digitalmars.com

const char s[6] = "hello";

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

--
Apr 30 2022