[Issue 2510] provide a template instantiation backtrace when compile fails in a template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 26 11:59:26 PDT 2009


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


Stewart Gordon <smjg at iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com


--- Comment #3 from Stewart Gordon <smjg at iname.com> 2009-09-26 11:59:25 PDT ---
You have the same typo in three different places:

    fprintf(stdmsg,"    instantiatied in %s: %s\n", cur->loc.toChars(),
cur->toChars());

instantiatied -> instantiated

And

    while(cur = cur->tinst)

probably ought to be written

    while((cur = cur->tinst) != NULL)

to avoid triggering a "possibly incorrect assignment" warning in some
compilers.

But I like the idea of defaulting to showing the three instantiation levels at
each end of the chain.

-- 
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