[Issue 1014] New: Error with character literal escaping when generating header with -H

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 1 16:50:17 PST 2007


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

           Summary: Error with character literal escaping when generating
                    header with -H
           Product: D
           Version: 1.007
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: digitalmars-com at baysmith.com


The character literal '\'' is inproperly converted to '''. Example follows.

----- tmp.d -----
static char[] charArray = [ '\"', '\'' ];

> dmd -c -H tmp.d

----- tmp.di -----
// D import file generated from 'tmp.d'
static
{
    char[] charArray = ['"','''];
}


-- 



More information about the Digitalmars-d-bugs mailing list