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

--- Comment #0 from 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:
------- You are receiving this mail because: -------

Reply via email to