[Bug 205453] 11.0-CURRENT libcxxrt/guard.cc uses C11's _Static_assert in conditionally-compiled C++ code and when it is used buildworld fails for syntax errors in g++ compilers

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Dec 20 08:31:43 UTC 2015


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

--- Comment #1 from Mark Millard <markmi at dsl-only.net> ---
I should also have noted that clang++ can report the __Static_assert syntax as
not-C++ syntax but C11 instead:

# clang++ -Wall -pedantic main.cc
main.cc:2:1: warning: _Static_assert is a C11-specific feature
[-Wc11-extensions]
_Static_assert(1,"Test");
^
1 warning generated.

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


More information about the freebsd-bugs mailing list