Index: clang/lib/AST/DeclPrinter.cpp =================================================================== --- clang/lib/AST/DeclPrinter.cpp +++ clang/lib/AST/DeclPrinter.cpp @@ -321,6 +321,8 @@ if (BMInitializer->isAnyMemberInitializer()) { FieldDecl *FD = BMInitializer->getAnyMember(); Out << *FD; + } else if (BMInitializer->isDelegatingInitializer()) { + Out << CDecl->getNameAsString(); } else { Out << QualType(BMInitializer->getBaseClass(), 0).getAsString(Policy); } Index: clang/test/AST/ast-print-method-decl.cpp =================================================================== --- /dev/null +++ clang/test/AST/ast-print-method-decl.cpp @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -ast-print %s -o - | FileCheck %s + +// CHECK: struct A { +struct A { + // CHECK-NEXT: A(); + A(); + + // CHECK-NEXT: A(int) : A() { + A(int) : A() { + // CHECK-NEXT: } + } + + + // CHECK-NEXT: }; +};