about summary refs log tree commit diff stats
path: root/030container.cc
diff options
context:
space:
mode:
Diffstat (limited to '030container.cc')
-rw-r--r--030container.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/030container.cc b/030container.cc
index 72acd48d..03af439c 100644
--- a/030container.cc
+++ b/030container.cc
@@ -530,7 +530,7 @@ void check_invalid_types(const recipe_ordinal r) {
 void check_invalid_types(const type_tree* type, const string& block, const string& name) {
   if (!type) return;  // will throw a more precise error elsewhere
   // End Container Type Checks
-  if (type->value && Type.find(type->value) == Type.end()) {
+  if (type->value && (Type.find(type->value) == Type.end() || Type[type->value].name.empty())) {
     raise_error << block << "unknown type in " << name << '\n' << end();
   }
   if (type->left) check_invalid_types(type->left, block, name);