[Bug 260251] static_assert not defined
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 260251] static_assert not defined"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 260251] static_assert not defined"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 260251] static_assert not defined"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 260251] static_assert not defined"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Dec 2021 09:14:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260251 Bug ID: 260251 Summary: static_assert not defined Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: standards Assignee: standards@FreeBSD.org Reporter: contact@emersion.fr static_assert isn't defined in <assert.h> even though it's in the C11 standard. See C11 standard (ISO/IEC 9899:2011) section 7.2 Diagnostics <assert.h> (p: 186-187). - Example failure: https://builds.sr.ht/~emersion/job/643193 - Reference: https://en.cppreference.com/w/c/language/_Static_assert Suggested fix: remove !defined(__cplusplus) here: https://github.com/freebsd/freebsd-src/blob/9c612a5d0af17021abc6e1bb2a8baa5a4c97d05f/include/assert.h#L72 -- You are receiving this mail because: You are the assignee for the bug.