[Bug 280382] '#include <algorithm>' fails when -std=c++98 and -pedantic-errors options are specified (found on the devel/benchmark port)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 Jul 2024 12:39:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280382
Dimitry Andric <dim@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dim@FreeBSD.org
Resolution|--- |DUPLICATE
Status|New |Closed
--- Comment #2 from Dimitry Andric <dim@FreeBSD.org> ---
This is another instance of our static_assert implementation in cdefs.h going
haywire in C++98 mode, as already reported in bug 276738. The problem is that
you would have to rewrite all static_assert invocations in libc++'s headers
with extra parentheses, which is not going to happen. (In fact, upstream has
been removing these old compat crutches actively.)
The fix here is simply to remove -pedantic-errors, as this option serves no
useful purpose, except being overly pedantic. :)
*** This bug has been marked as a duplicate of bug 276738 ***
--
You are receiving this mail because:
You are the assignee for the bug.