[clang] [Clang] Initialize bypassed variables w/ trivial-auto-var-init (PR #181937)

Justin Stitt via cfe-commits cfe-commits at lists.llvm.org
Wed May 27 13:59:03 PDT 2026


JustinStitt wrote:

@efriedma-quic 
> In this form, the declaration is never reached, so the whole sentence is irrelevant.

This fails for both C and C++. I think the spec hints that this should pass for at least C. GCC gets this right (for both C and C++).

I'll work on a patch to get this to parity with GCC and probably more spec-compliant in some ways.


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


More information about the cfe-commits mailing list