[Issue 11724] D sends failed template instantiations to object file
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 11 07:24:36 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11724
--- Comment #2 from yebblies <yebblies at gmail.com> 2013-12-12 02:24:33 EST ---
The fix here is to not emit speculative templates, but unfortunately this will
need some work in dmd.
void foo()() {}
void bar()() { foo(); }
static assert(is(typeof(bar()))); // marks foo!() and bar!() as speculative
void main()
{
bar(); // unmarks bar!()
// foo(); // without this line foo!() is still speculative.
}
So we need a way to detect speculativeness depending on another template
instance.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list