model-writtenrun 1632 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Thomas Munro proposed fixing poor Visual Studio assertion diagnostics by detecting GCC statement expressions explicitly, limiting the fallback to StaticAssertExpr(), and consolidating C and C++ implementations; he also raised allowing standard static_assert() directly in new code #1.
- Chao Li endorsed the simplification and caught configure probe and variable errors #2, which Thomas corrected while verifying the generated pg_config.h in his revision #3.
- Peter Eisentraut explained the historical MSVC file-scope limitation and submitted an independent six-patch cleanup covering type-assertion naming, declaration placement, removal of StaticAssertStmt(), and a struct-based StaticAssertExpr(); he reported that the final two patches remained work in progress because the alternative expression implementation failed in PostgreSQL builds #4.
- Peter first extracted the common assert.h availability and regex macro cleanup from #4 into 795e94c70c, crediting Thomas Munro as co-author.
- Peter then committed ten files of declaration-placement changes from #4 as 493eb0da31, leaving out three conversions that introduced additional blocks.
- Thomas's revised statement-expression design #3 landed as 17f446784d with light naming and comment edits, following the separately committed header prerequisite.
- At the thread's close, Peter reported that the refactor reduced twelve implementation variants to four, but noted that the fallback still fails in C++ because it defines a type inside sizeof; he treated this as an existing portability limitation for follow-up, while the supplied commits leave the broader cleanup and alternative expression implementation incomplete #5.