digitalmars.D.bugs - [Issue 6827] New: `assert(0)` is ignored in a function template
- d-bugmail puremagic.com (26/26) Oct 18 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6827
- d-bugmail puremagic.com (7/7) Jan 07 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6827
- d-bugmail puremagic.com (11/11) Jan 09 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6827
http://d.puremagic.com/issues/show_bug.cgi?id=6827 Summary: `assert(0)` is ignored in a function template Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: verylonglogin.reg gmail.com --- Comment #0 from Denis <verylonglogin.reg gmail.com> 2011-10-18 11:09:40 PDT --- An assertion is ignored in the following example iff `t` is a function template and the first argument of the `assert` evaluates to zero at CT: --- import std.stdio; void t()() { assert(0, "Where am I?"); } void main() { t(); writeln("Where is he?"); } --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 18 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6827 --- Comment #1 from Denis <verylonglogin.reg gmail.com> 2012-01-08 09:07:37 MSK --- Fixed in head. It would be good to add unittests before closing this bug. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 07 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6827 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2012-01-09 02:07:06 PST --- *** This issue has been marked as a duplicate of issue 6205 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 09 2012