[all-commits] [llvm/llvm-project] 7fdffd: [clang][bytecode] Add test for variadic inherited ...

Akash Manna via All-commits all-commits at lists.llvm.org
Wed Sep 23 01:12:19 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7fdffde1a3a932069d1aeb38c8c949166838476c
      https://github.com/llvm/llvm-project/commit/7fdffde1a3a932069d1aeb38c8c949166838476c
  Author: Akash Manna <akash.manna.mymail at gmail.com>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M clang/test/AST/ByteCode/records.cpp

  Log Message:
  -----------
  [clang][bytecode] Add test for variadic inherited constructor calls (#225611)

Fixes #158529

Calling a variadic constructor through a `using` declaration used to hit
`assert(false && "Can't get arguments from that expression type")` in
`cleanupAfterFunctionCall`. The call site is a
`CXXInheritedCtorInitExpr`, and the cleanup only knew how to count
variadic arguments from a `CallExpr` or `CXXConstructExpr`. A single
level of `using` crashed the same way, the second level in the
reproducer just adds a frame.

This was fixed as a side effect of #207393, which now takes the variadic
size from the frame instead of the call expression. Adding the
reproducer plus a few value checks (single and double level, mixed
vararg types, inside a constexpr function) so it stays fixed.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list