digitalmars.D.bugs - [Issue 8325] New: IFTI on non-function templates
- d-bugmail puremagic.com (30/30) Jun 30 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8325
- d-bugmail puremagic.com (10/10) Nov 04 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8325
http://d.puremagic.com/issues/show_bug.cgi?id=8325 Summary: IFTI on non-function templates Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: accepts-invalid, wrong-code Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: timon.gehr gmx.ch DMD 2.059: template X(){ double X(double){return 2;} float X(float){return 3;} } static assert(!is(typeof(X(2)))); // fail static assert(is(typeof(X!()(2.0f)) == float)); // fail static assert(is(typeof(X(2.0))==double)); // ok static assert(is(typeof(X(2.0f))==float)); // fail All static assertions should pass. IFTI should not have any other effect than implicit template instantiation if the template in question contains more than one declaration. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 30 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8325 Denis Shelomovskij <verylonglogin.reg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |verylonglogin.reg gmail.com 09:40:18 MSK --- The second one passes now. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 04 2012