[Issue 3247] New: Crash on overriding class methods with 'auto' return type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 12 07:27:59 PDT 2009


           Summary: Crash on overriding class methods with 'auto' return
           Product: D
           Version: 2.031
          Platform: Other
        OS/Version: All
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: jarrett.billingsley at gmail.com

class A
    auto foo() { return 0; }

class B : A
    override auto foo() { return 5; } 

The compiler crashes.  It also crashes if A.foo's return type is int or B.foo's
return type is int (but not if both are int, obviously).  It doesn't crash if
foo is not overridden.

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

More information about the Digitalmars-d-bugs mailing list