Summary: Unclear error message "override cannot be applied to
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P4
         Component: DMD

--- Comment #0 from Ali Cehreli <> 2010-12-28 13:41:38 PST ---
It is not easy to see that the dmd error message in the subject line probably
means something like "member function templates cannot be virtual." (Or after
the language of the spec page, "Templates cannot be used to add virtual
functions to classes.")

class Derived
    override void foo(T)()

void main()
    auto d = new Derived();!int();

Abreviated lines from dmd 2.051 output:

... Error: variable!(int).foo.this override cannot be
applied to variable
... Error: template instance!(int) error instantiating

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to