[Issue 6602] Invalid template instantiations »leaked« by is(typeof())/__traits(compiles, …)/Type::trySemantic

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 4 22:26:07 PDT 2011


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



--- Comment #1 from klickverbot <code at klickverbot.at> 2011-09-04 22:25:58 PDT ---
Wish I had discovered that earlier, not just from a bugzilla reference in the
DMD source after I tracked the problem down: A very similar bug has already
been reported, issue 4302. However, the fix proposed there (which got committed
in e66a3a5) only hides the issue for static if conditionals, while it can also
appear if trySemantic() is attempted outside them, see above.

I think the correct solution for the problem is to remove the template instance
from the member list of the enclosing scope again if instantiation failed while
errors were gagged:

https://github.com/D-Programming-Language/dmd/pull/364

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