[pkg-d-commits] [ldc] 81/149: Fix flag 'isAbstract' for ClassInfos
Matthias Klumpp
mak at moszumanska.debian.org
Sun Apr 23 22:37:00 UTC 2017
This is an automated email from the git hooks/post-receive script.
mak pushed a commit to annotated tag v1.2.0
in repository ldc.
commit 47f1e5979838f6c843f216f91b638030241c63aa
Author: Martin <noone at nowhere.com>
Date: Sat Feb 4 18:12:54 2017 +0100
Fix flag 'isAbstract' for ClassInfos
The (public) field ClassDeclaration::isabstract isn't a bool, it's a
tristate with 0 = forward-reference, 1 = is abstract, 2 = is not abstract.
Fixes dmd-testsuite's runnable/test34.d, as TypeInfo_Class.create() (and
so Object.Factory()) returns null for abstract classes.
---
gen/classes.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gen/classes.cpp b/gen/classes.cpp
index 1346415..68b6edd 100644
--- a/gen/classes.cpp
+++ b/gen/classes.cpp
@@ -517,7 +517,7 @@ static ClassFlags::Type build_classinfo_flags(ClassDeclaration *cd) {
break;
}
}
- if (cd->isabstract) {
+ if (cd->isAbstract()) {
flags |= ClassFlags::isAbstract;
}
for (ClassDeclaration *pc = cd; pc; pc = pc->baseClass) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git
More information about the pkg-d-commits
mailing list