This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115d. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-10-26


2184. Missing C compatibility entry for decrement of bool

Section: C.7.4  [diff.expr]     Status: CD4     Submitter: CWG     Date: 2015-10-21

C permits decrementing a _Bool operand, but C++ has never allowed that operation on bool operands. Since there is some code that maps those types together for cross-language compatibility, it might be worth mentioning the different behavior (and, with the adoption of P0002R1, for increment as well).

Notes from the June, 2016 meeting:

This issue will be handled editorially and is placed in "review" status until that point.