Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 2021 23:20:43 +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-CcdTuP8G4T@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

--- Comment #14 from Warner Losh <imp@FreeBSD.org> ---
_ISOC11_SOURCE appears to be a newer extension in glibc that could solve the
issue about what to do when compiling in C11 mode. glibc choses to enable t=
his
by default, but it's unclear that's standard conformant. I'll see about add=
ing
this feature test macro to FreeBSD to specify you also want isoc11 features.
That would be compatible with glibc and other systems, as well as being
something to fill in the gap before the open group updates posix to align i=
t to
a newer version of C.

This would also preserve purely standards conforming programs that just hap=
pen
to be compiled with a c11 because the system default has changed, and be
minimally intrusive a change for code ported from other systems.

--=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-CcdTuP8G4T>