Through #169989 we were able to skip CodeGen for top-level decls when diagnostics report errors and as a result of this, we could have these cases fixed. $ ./clang-repl --Xcc=-x --Xcc=c --Xcc=-std=c23 ...