[Bug 255290] _POSIX_C_SOURCE=200809 hides static_assert

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Apr 21 22:34:49 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255290

--- Comment #13 from Warner Losh <imp at FreeBSD.org> ---
This isn't a case of being liberal about what's accepted. It's a case of doing
exactly what the standard specifies, and nothing more. There's no feature test
macro defined for sources to say they want a C11 extensions in addition to the
strict posix environment requested by __POSIX_C_SOURCE__ = 200809.

If there is a feature test macro that's well defined that includes this, that
could be implemented, but __STDC_VERSION__ is not such a macro because it
cannot be defined by the programmer, only the compiler.

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


More information about the freebsd-standards mailing list