[Issue 2816] Sudden-death static assert is not very useful

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 18 15:13:29 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2816





------- Comment #11 from clugdbug at yahoo.com.au  2009-04-18 17:13 -------
Found another bug in this patch.  Should start the count from 0, not 1.
Otherwise you can get a segfault when the out-by-1 error shows up in the "only
show first and last iterations" case.

in TemplateInstance::printInstantiationTrace()

    // determine instantiation depth and number of recursive instantiations
    int n_instantiations = 0;


-- 



More information about the Digitalmars-d-bugs mailing list