SUNDAY, APRIL 19, 2026 GCC DIGEST · OPEN-SOURCE SYSTEMS DAILY VOL. 1 · NO. 109
Late Edition · APRIL 19, 2026 · VOL. 1 · NO. 109
The GCC Digest
— A Daily Record of the GNU Compiler Collection —
c++ Impact 4 / 10

C++: Correct -Wkeyword-macro warnings for contracts-related keywords.

Adjusts -Wkeyword-macro warnings to correctly handle contract-related keywords like `pre` and `post`.

The -Wkeyword-macro warning was incorrectly triggered for contract_assert, which is already handled as a keyword. This commit corrects the warning logic to instead focus on pre and post, which are identifiers with special meaning in the context of contracts. The associated tests are updated to reflect these changes.

Filed Under: C++warningsmacroscontracts