diff --git a/src/shared/cplusplus/Parser.cpp b/src/shared/cplusplus/Parser.cpp
index 44f299847ac927ab15431e717400229036e2e67c..90631494a50b1fedf569ceb0308aa7a0b8bb0fea 100644
--- a/src/shared/cplusplus/Parser.cpp
+++ b/src/shared/cplusplus/Parser.cpp
@@ -126,7 +126,8 @@ Parser::Parser(TranslationUnit *unit)
       _qtMocRunEnabled(false),
       _objCEnabled(false),
       _inFunctionBody(false),
-      _inObjCImplementationContext(false)
+      _inObjCImplementationContext(false),
+      depth(0)
 { }
 
 Parser::~Parser()