diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp
index 8cb06934474bc134525fd3034384200603772bf0..967547e0d4ac7d8ae65f79f106e682fedd77a343 100644
--- a/src/plugins/cpptools/cppmodelmanager.cpp
+++ b/src/plugins/cpptools/cppmodelmanager.cpp
@@ -364,6 +364,14 @@ protected:
         return false;
     }
 
+    virtual bool visit(TypenameTypeParameterAST *ast)
+    {
+        if (ast->name)
+            addType(ast->name->name);
+
+        return true;
+    }
+
     virtual bool visit(NamedTypeSpecifierAST *ast)
     {
         if (ast->name) {