Date: Sat, 20 Jul 2024 12:39:51 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 280382] '#include <algorithm>' fails when -std=c++98 and -pedantic-errors options are specified (found on the devel/benchmark port) Message-ID: <bug-280382-29464-UWQ23pZQ1D@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-280382-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-280382-29464@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=3D280382 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 goi= ng haywire in C++98 mode, as already reported in bug 276738. The problem is th= at 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 *** --=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-280382-29464-UWQ23pZQ1D>