1331 – header file genaration generates a ":" instead of ";" at pragma

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1331 - header file genaration generates a ":" instead of ";" at pragma
Summary: header file genaration generates a ":" instead of ";" at pragma
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 All
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2007年07月11日 06:56 UTC by Daniel Biehl
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 Daniel Biehl 2007年07月11日 06:56:28 UTC
Hello,
some code:
	module test;
	pragma(lib, "test");
	pragma(msg, "Hello World");
dmd test.d -H -c generates:
	// D import file generated from 'test.d'
	module test;
	pragma(lib, "test"):
	pragma(msg, "Hello World"):
this happens in several version of dmd and gdc, don't know a version if it works correct.
Greets Daniel
Comment 1 Daniel Biehl 2007年07月11日 07:00:48 UTC
Hello,
i take a look at the gdc sources of dmd. 
In file attrib.c at method 
 void AttribDeclaration::toCBuffer(OutBuffer *buf, HdrGenState *hgs)
there is a line:
 buf->writeByte(':');
maybe this is the error.
Greets Daniel
Comment 2 Daniel Biehl 2007年07月11日 16:44:54 UTC
there is the same line in 
 void ConditionalDeclaration::toCBuffer
Daniel
Comment 3 Walter Bright 2007年07月30日 15:50:20 UTC
Fixed DMD 1.019 and 2.003


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