summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodemarker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/cppcodemarker.cpp')
-rw-r--r--src/qdoc/cppcodemarker.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qdoc/cppcodemarker.cpp b/src/qdoc/cppcodemarker.cpp
index d4e7546e9..b0e4e823d 100644
--- a/src/qdoc/cppcodemarker.cpp
+++ b/src/qdoc/cppcodemarker.cpp
@@ -1306,6 +1306,12 @@ QList<Section> CppCodeMarker::qmlSections(QmlTypeNode* qmlTypeNode, SynopsisStyl
}
++c;
}
+ if (current->qmlBaseNode() == current) {
+ qDebug() << "qdoc internal error: circular type definition."
+ << "QML type" << current->name()
+ << "can't be its own base type";
+ break;
+ }
current = current->qmlBaseNode();
while (current) {
if (current->isAbstract())