model-writtenrun 8679 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier proposed consolidating the C and C++ assertion fallbacks in src/include/c.h, reducing four implementation branches to three in #1.
- Georgios Kokolatos welcomed the readability improvement in #2, but Tom Lane flagged an MSVC CI failure in #3; Michael reproduced it and changed the shared fallback to the existing C sizeof-based implementation in #4.
- Georgios reassessed the revision in #5, and Tom tested it with an older GCC and requested a C++ explanatory comment and a simpler preprocessor condition in #7; Michael incorporated both in #8, with Tom accepting the wording in #9.
- Michael committed #8 unchanged as b7f64c64d3 and announced the landing in #10.
- Michael then discovered that the shared fallback broke C++ assertions and supplied a delta restoring a separate C++ statement implementation in #11; he supplied an extension reproducer in #13 because ordinary core builds did not expose the problem.
- Tom proposed separate shared statement and expression definitions in #14, but Michael explained that C++ forbids defining a struct inside sizeof in #15 and that the alternative accepted by GCC still failed with MSVC in #17.
- Tom independently reproduced a cpluspluscheck failure with an older g++ and recommended reverting because separate implementations still appeared necessary in #18.
- Michael fully reverted the refactor with faa650a99b, explaining in #19 that further alternatives could not achieve the intended reduction in implementation branches; the attached fallback fix was not landed.
- After Tom requested comments describing all four implementations in #20, Michael posted a comment-only proposal in #21; the thread ends with the refactor reverted and that documentation patch awaiting review.