Fix circular class reference %p-printing causing infinite recursion (#7106).

Fixes #7106.
This commit is contained in:
Wilson Snyder
2026-02-19 20:15:37 -05:00
parent 4a4f8c6698
commit 0d2fcfd49d
10 changed files with 106 additions and 59 deletions
+2
View File
@@ -3233,6 +3233,7 @@ void AstCFunc::dump(std::ostream& str) const {
if (isDestructor()) str << " [DTOR]";
if (isMethod()) str << " [METHOD]";
if (isLoose()) str << " [LOOSE]";
if (isOverride()) str << " [OVERRIDE]";
if (isVirtual()) str << " [VIRT]";
if (isCoroutine()) str << " [CORO]";
if (needProcess()) str << " [NPRC]";
@@ -3249,6 +3250,7 @@ void AstCFunc::dumpJson(std::ostream& str) const {
dumpJsonBoolFuncIf(str, dpiContext);
dumpJsonBoolFuncIf(str, isConstructor);
dumpJsonBoolFuncIf(str, isDestructor);
dumpJsonBoolFuncIf(str, isOverride);
dumpJsonBoolFuncIf(str, isVirtual);
dumpJsonBoolFuncIf(str, isCoroutine);
dumpJsonBoolFuncIf(str, needProcess);