Date: Wed, 21 Apr 2021 14:09:45 +0000 From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 255290] _POSIX_C_SOURCE=200809 hides static_assert Message-ID: <bug-255290-99-t4dE8V6WZM@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-255290-99@https.bugs.freebsd.org/bugzilla/> References: <bug-255290-99@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255290 Warner Losh <imp@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |imp@FreeBSD.org --- Comment #1 from Warner Losh <imp@FreeBSD.org> --- (In reply to Tobias Kortkamp from comment #0) > I've reported this upstream > but we have found no evidence that POSIX 2008 mandates C99 and > should hide static_assert. If POSIX 2008 and/or C99 do not mandate static_assert, it must be hidden for them. A general rule is that system headers cannot pollute name spaces of t= he user when directed to do so by things like POSIX_C_SOURCE. static_assert was added, I believe, in C11 and C++11. As such, it should be hidden from the 2008 posix environment. I've not checked to see if there's a newer value of POSIX_C_SOURCE that sho= uld define a higher value of either __POSIX_VISIBLE or __ISO_C_VISIBLE, but sin= ce you're using 200809, that's not relevant. --=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-255290-99-t4dE8V6WZM>