www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1331] New: header file genaration generates a ":" instead of ";" at pragma

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1331

           Summary: header file genaration generates a ":" instead of ";" at
                    pragma
           Product: D
           Version: 1.018
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: dbiehl gmx.net


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


-- 
Jul 11 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1331






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


-- 
Jul 11 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1331






there is the same line in 
       void ConditionalDeclaration::toCBuffer

Daniel


-- 
Jul 11 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1331


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed DMD 1.019 and 2.003


-- 
Jul 30 2007