[Issue 7437] New: DMD enters infinite loop during overload resolution
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 4 09:58:41 PST 2012
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: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at 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: -------
More information about the Digitalmars-d-bugs
mailing list