[Issue 15333] Assertion failed: (!fd->vthis->csym), function FuncDeclaration_toObjFile, file glue.c, line 1034.
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat Nov 14 13:43:56 PST 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15333
ag0aep6g at gmail.com changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86                         |All
                 OS|Mac OS X                    |All
--- Comment #1 from ag0aep6g at gmail.com ---
Reduced:
identifier.d:
----
module identifier;
void map(alias fun)() {}
struct IdentifierResolver(alias handler) {
    void resolve() {
        map!((a) {});
        handler(true);
    }
}
----
statement.d:
----
module statement;
import identifier;
struct StatementVisitor {
    void visit() {
        int location;
        alias IR = IdentifierResolver!((e) {location = 0;});
    }
}
----
`dmd -c identifier.d statement.d -inline`:
----
dmd: glue.c:1035: void FuncDeclaration_toObjFile(FuncDeclaration*, bool):
Assertion `!fd->vthis->csym' failed.
Aborted (core dumped)
----
--
    
    
More information about the Digitalmars-d-bugs
mailing list