1014 – Error with character literal escaping when generating header with -H

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1014 - Error with character literal escaping when generating header with -H
Summary: Error with character literal escaping when generating header with -H
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P1 blocker
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2007年03月01日 18:50 UTC by Bradley Smith
Modified: 2014年02月16日 15:23 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Bradley Smith 2007年03月01日 18:50:08 UTC
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 = ['"','''];
}
Comment 1 Walter Bright 2007年03月19日 17:38:50 UTC
Fixed DMD 1.009


AltStyle によって変換されたページ (->オリジナル) /