Thread overview
[Issue 2875] New: ICE(cgcod.c) setting delegate = &Struct.func
Apr 22, 2009
d-bugmail
May 15, 2009
Don
Jul 09, 2009
Walter Bright
April 22, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2875

           Summary: ICE(cgcod.c) setting delegate = &Struct.func
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code, wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: clugdbug@yahoo.com.au


struct Foo {
  void foo(int x) {}
}

void main() {
   void delegate (int) a = &Foo.foo;
}

Internal error: ..\ztc\cgcod.c 1549

Possibly related to bug 1709: it silently compiles wrong code when compiled with -O. D2 only; D1.042 is OK.


-- 

May 15, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2875


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch




--- Comment #1 from Don <clugdbug@yahoo.com.au>  2009-05-15 14:38:25 PDT ---
The patch for bug 2399 also fixes this. They're not exactly the same bug, though.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 09, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2875


Walter Bright <bugzilla@digitalmars.com> changed:

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




--- Comment #2 from Walter Bright <bugzilla@digitalmars.com>  2009-07-09 02:55:32 PDT ---
Fixed dmd 2.031

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------