[Bug 290299] C++26's <stdckdint.h> fails to compile in C++

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 17 Oct 2025 22:42:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290299

--- Comment #2 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3c052bec12fcf09f81ba0760ebecec38e196d332

commit 3c052bec12fcf09f81ba0760ebecec38e196d332
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-10-17 03:49:14 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-10-17 21:48:30 +0000

    include/stdckdint.h: make the header compatible with C++

    by removing the cast to _Bool.  The _Bool type is not defined for C++,
    and the specification from the gcc info doc states that the return
    type of the  __builtin_{add,sub,mul}_overflow() is bool already.

    This is done instead of including stdbool.h to avoid namespace
    pollution, since defining bool from stdckdint.h simingly is not
    sanctioned by ISO/IEC 9899:2024.

    PR:     290299
    Reviewed by:    des
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D53149

 include/stdckdint.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.