June 30, 2012 [Issue 8325] New: IFTI on non-function templates | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from timon.gehr@gmx.ch 2012-06-30 07:53:44 PDT --- 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: ------- |
November 05, 2012 [Issue 8325] IFTI on non-function templates | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | 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 --- Comment #1 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2012-11-05 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: ------- |
Copyright © 1999-2021 by the D Language Foundation