Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jul 2024 16:13:12 +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-VOjs27gkQ7@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

--- Comment #6 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Dd3de5c5b45293d15f8b87f2e529318dd9=
9988d4c

commit d3de5c5b45293d15f8b87f2e529318dd99988d4c
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-07-20 15:57:53 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-07-20 16:11:49 +0000

    cdefs.h: Don't define fallback for _Static_assert

    Remove pre 4.6 code to define _Static_assert in terms of _COUNTER.  We
    no longer need to support compilers this old (in fact support for all
    pre gcc 10 compilers has been removed in -current). This is a partial
    MFC of that work because removing this fixes a bug that's oft reported
    with -pedantic-errors and C++98 compilations.

    PR: 280382, 276738
    Sponsored by:           Netflix

    This is a direct commit to stable/14.

    (cherry picked from commit 22cdafe197ac960c5ce839ef6ec699b59f4b0080)

 sys/sys/cdefs.h | 9 ---------
 1 file changed, 9 deletions(-)

--=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-VOjs27gkQ7>