summaryrefslogtreecommitdiff
path: root/src/trans/enumerate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trans/enumerate.cpp')
-rw-r--r--src/trans/enumerate.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/trans/enumerate.cpp b/src/trans/enumerate.cpp
index 02704a55..b1774041 100644
--- a/src/trans/enumerate.cpp
+++ b/src/trans/enumerate.cpp
@@ -1170,8 +1170,12 @@ namespace {
is_spec = it->second.is_specialisable;
),
(Static,
+ if( pe->item == "#vtable" ) {
+ is_spec = true;
+ break;
+ }
auto it = impl.m_statics.find(pe->item);
- if( it == impl.m_statics.end() && pe->item != "#vtable" ) {
+ if( it == impl.m_statics.end() ) {
DEBUG("Static " << pe->item << " missing in trait " << pe->trait << " for " << *pe->type);
return false;
}