Summary: Assertion in glue.c fails
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

Created an attachment (id=358)
 --> (
Compile and run this file

While porting a library from D1 to D2 I encountered the following DMD error:

dmd: glue.c:652: virtual void FuncDeclaration::toObjFile(int): Assertion
`!v->csym' failed.

It's hard to say what causes the error, but I've been able to narrow it down to
a point where almost any change I make makes the error disappear. The source
files are attached. (There's four of them, but they are very short.)

To reproduce the error, compile and run the program with rdmd:
    rdmd moduleA.d
Strangely enough, running DMD directly does not reproduce the error:
    dmd moduleA.d moduleB.d moduleC.d moduleD.d

For some changes a runtime bug is introduced instead; see the commented section
in moduleC.d.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to