Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Dec 2021 09:14:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        standards@FreeBSD.org
Subject:   [Bug 260251] static_assert not defined
Message-ID:  <bug-260251-99@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260251

            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 stand=
ard.
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/9c612a5d0af17021abc6e1bb2a8baa5=
a4c97d05f/include/assert.h#L72

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260251-99>