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

           Summary: DMD enters infinite loop during overload resolution
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: timon.g...@gmx.ch


--- Comment #0 from timon.g...@gmx.ch 2012-02-04 09:58:40 PST ---
With DMD 2.058head, the compilation of the following code does not terminate.
-v output suggests DMD hangs in semantic2.

class A{
    A x()const{return new A;}
    alias x this;
}

int foo(immutable(A) x){return 1;}
int foo(A x){return 2;}

static assert(foo(new immutable(A)) == 1);

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

Reply via email to