[clang] [Clang][CWG1815] Support lifetime extension of temporary created by aggregate initialization using a default member initializer (PR #87933)

via cfe-commits cfe-commits at lists.llvm.org
Mon May 13 17:24:23 PDT 2024


yronglin wrote:

> Heads up. This causes clang to crash on some code. I'm running creduce to reduce the cpp source file.
> 
> ```
> clang: /usr/local/google/home/zequanwu/workspace/llvm/clang/lib/Sema/SemaDecl.cpp:16509: Decl *clang::Sema::ActOnFinishFunctionBody(Decl *, Stmt *, bool): Assertion `!Cleanup.exprNeedsCleanups() && "Unaccounted cleanups in function"' failed.
> ```

Thanks report this, nice and small reproducer would definitely help resolving this.

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


More information about the cfe-commits mailing list