[Bug 290299] C++26's <stdckdint.h> fails to compile in C++
[email protected] Tue, 10 Feb 2026 15:29:14 +0000
| Newsgroups | gmane.os.freebsd.devel.standards |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290299 --- Comment #7 from [email protected] --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=9748212e619b7608ac50ad6d0a768b20d5c9fd0b commit 9748212e619b7608ac50ad6d0a768b20d5c9fd0b Author: Konstantin Belousov <[email protected]> AuthorDate: 2025-10-17 03:49:14 +0000 Commit: Dag-Erling Smørgrav <[email protected]> CommitDate: 2026-02-10 14:24: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 (cherry picked from commit 3c052bec12fcf09f81ba0760ebecec38e196d332) include/stdckdint.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- You are receiving this mail because: You are the assignee for the bug.