[Issue 3412] New: DMD 1.x svn branch store string literal in mutable char*

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 17 10:46:50 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3412

           Summary: DMD 1.x svn branch store string literal in mutable
                    char*
           Product: D
           Version: 1.051
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: patch
          Severity: trivial
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: llucax at gmail.com


--- Comment #0 from Leandro Lucarella <llucax at gmail.com> 2009-10-17 10:46:49 PDT ---
Created an attachment (id=476)
Patch against DMD 1.x branch r215

String literals are supposed to be const char* instead of mutable char*, but
DMD uses char* in a few places.

Attached is a patch that stores the string literals using the right type.

As a side effect, it avoids some compiler warnings (at least with GCC).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list