[Issue 14549] isVirtualMethod does not work well with Github DMD
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon May 11 08:45:40 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14549
--- Comment #3 from Puneet Goel <puneet at coverify.org> ---
Reduced code. With the PR applied, I get dmd assertion failure:
$ dmd /tmp/test.d
dmd: attrib.c:1219: virtual Dsymbols* StaticIfDeclaration::include(Scope*,
ScopeDsymbol*): Assertion `scope' failed.
Aborted
//// test.d
template foo() {
mixin(foo!(typeof(this)));
}
template foo(T) {
enum string foo =
q{static if(! __traits(isVirtualMethod, "boo")) {}} ;
}
class bar {
mixin foo;
int boo;
}
--
More information about the Digitalmars-d-bugs
mailing list