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

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-07-11T06:56:00Z
Last change time
2014-02-16T15:23:15Z
Assigned to
bugzilla
Creator
dbiehl

Comments

Comment #0 by dbiehl — 2007-07-11T06:56:28Z
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 by dbiehl — 2007-07-11T07:00:48Z
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 by dbiehl — 2007-07-11T16:44:54Z
there is the same line in void ConditionalDeclaration::toCBuffer Daniel
Comment #3 by bugzilla — 2007-07-30T15:50:20Z
Fixed DMD 1.019 and 2.003