[clang] [clang] Reject incomplete type arguments for __builtin_dump_struct (PR #72749)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 19 07:41:45 PST 2023


================
@@ -713,6 +713,11 @@ static ExprResult SemaBuiltinDumpStruct(Sema &S, CallExpr *TheCall) {
     return ExprError();
   }
   const RecordDecl *RD = PtrArgType->getPointeeType()->getAsRecordDecl();
+  if (!RD->isCompleteDefinition()) {
----------------
zyn0217 wrote:

Thank you! Added the template case to the test.

https://github.com/llvm/llvm-project/pull/72749


More information about the cfe-commits mailing list