[Bug 255290] _POSIX_C_SOURCE=200809 hides static_assert

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Apr 21 23:20:43 UTC 2021


--- Comment #14 from Warner Losh <imp at 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 this
by default, but it's unclear that's standard conformant. I'll see about adding
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 it to
a newer version of C.

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

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

More information about the freebsd-standards mailing list