[Issue 16084] Linker error with interface final function calling virtual function

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri May 27 20:19:30 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16084

--- Comment #2 from Jack Stouffer <jack at jackstouffer.com> ---
(In reply to Vladimir Panteleev from comment #1)
> How can this code be valid?

According to the spec ;)

> You are declaring a templated function with no
> implementation. Templated functions cannot be virtual. I think this
> shouldn't even compile.

If non final template functions aren't possible, then the compiler must check
for this and the spec needs to be updated.

I would like to know why this isn't possible though.

--


More information about the Digitalmars-d-bugs mailing list