From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 061F93858C2A; Thu, 18 Jan 2024 16:51:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 061F93858C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705596666; bh=YYMX9q+Kgy5ffD7L9pgQMr/nAuLqgksNmWnBwAyxPGM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=r6PquK8IT9ksOCJ+CN8oFZ69bRR4WspNiuQvXmyl3kF42IGctD8pI5+xHs/xEiohG KpMZfwVif44dNnDVRjn0IXHZx6hYzCeLQvshD1798TjR1n1oZwBuHZbZVw7Z7/PJNv Vzy/9h4smknUa17boNgwK6Aw10gfGb4Li/STkPbg= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/109536] Failure to compile constexpr std::vector with -D_GLIBCXX_DEBUG Date: Thu, 18 Jan 2024 16:51:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109536 --- Comment #8 from Jonathan Wakely --- (In reply to GCC Commits from comment #5) > There are a few test failures in C++20 mode, which I'm unable to > explain. The _Safe_iterator::operator++() member gives errors for usi= ng > non-constexpr functions during constant evaluation, even though those > functions are guarded by std::is_constant_evaluated() checks. The same > code works fine for C++23 and up. This part is fixed by Patrick's commit.=