[Issue 460] New: Assertion failure: '!needThis()' on line 143 in file 'tocsym.c'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 25 16:43:31 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=460

           Summary: Assertion failure: '!needThis()' on line 143 in file
                    'tocsym.c'
           Product: D
           Version: 0.172
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: digitalmars-com at baysmith.com


The code listed below is invalid, but an error message would be better than a
compiler assertion failure.

>dmd -c gld\tmp.d
Assertion failure: '!needThis()' on line 143 in file 'tocsym.c'

abnormal program termination

----- tmp.d -----
extern(C) void func(void*);

struct s {
    int v;
}

void func2() {
  func(&s.v);
}


-- 




More information about the Digitalmars-d-bugs mailing list