http://d.puremagic.com/issues/show_bug.cgi?id=3581
Don <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|wrong-code | CC| |[email protected] --- Comment #2 from Don <[email protected]> 2011-02-28 14:22:18 PST --- Applies to 'static override' as well. One possible patch is func.c, FuncDeclaration::semantic(), line 400: // if static function, do not put in vtbl[] if (!isVirtual()) { //printf("\tnot virtual\n"); + if (isOverride()) + error("cannot use override with non-virtual functions"); goto Ldone; } But this should really be caught in the parser, I think. Anyway, it's accepts-invalid rather than wrong-code. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
