From nobody Fri May 31 23:16:21 2024 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VrfBY1CdJz5LcPl for ; Fri, 31 May 2024 23:16:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VrfBX6Sx2z4m6F for ; Fri, 31 May 2024 23:16:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717197380; a=rsa-sha256; cv=none; b=jM8SzfQdQo9E3pyNz7M5ZAmQ+OhyAipV+8IM4V+NGYl0uatV0E5mLE5wopWsnfbzBQ7evD /VwjMfYV9XlWiGAYB/+QIX4VqagLkQqCOktQYg06E0Bw5g7asQNdlL8TVjpr/tWLTnWIsc Si2GL36PO2a8YzkPAyiEtmOjCv96KScf0DF2wwT8VueAY37HN44kq8CUgbDb26uQ3CwYh/ ZlFpjf4QyYVOy6otWcse5C8ZjEeF75Iejkr4sWcIUH8nHSrZvVtuXEgxP7A3EBP78+lOIh vWNr8CXBk13dFiCJPUIxo53GLLmvanhn/EG2I26iXkJCyp8lq7oW9PEgGoJX+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717197380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YOY0xEBgsAfvBD756aVU6zqJJy8NVQ/o0GWscGi4M1c=; b=xJMZVsjB9ZnUVWzAtJTF15YgqK2SssrI1ym4reZPlLLYk9VMS0nHXbeBQTIfnJCfT+uuYC nbGocYDMOO7gakORCJK07UF6LYszKF9NHgDviaKjE+cbcsctBmJVJsD/fFKpqIeBawgW65 aBbV7FxBNkBlojsj2ftyyHKLD9p6ba1biwjqTtML5aSGgD5rsX1SF7LIcmik9N1hfus0Zj lM5w0yIm3MLv2uIopDSB/i8Mj473sKXfLXNi1gNAt/YqRkjx4t5J19aC9Xp6QUO64AHJYP +caQ0ztHFiqNEN76LJR6HjMvGla0FESRohyGZE/V9mscPHiGt98v2thWAjA9IA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VrfBX64H3zk3Q for ; Fri, 31 May 2024 23:16:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 44VNGKIl005799 for ; Fri, 31 May 2024 23:16:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44VNGKn3005798 for toolchain@FreeBSD.org; Fri, 31 May 2024 23:16:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 279443] LIBCPP assertions are enabled in optimized builds when -DNDEBUG is given to clang Date: Fri, 31 May 2024 23:16:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 14.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yuri@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org 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: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-toolchain@freebsd.org Sender: owner-freebsd-toolchain@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279443 --- Comment #4 from Yuri Victorovich --- (In reply to Mark Millard from comment #3) &v[v.size()] should take the vector's base address, add the size to it, and return the result. This is technically an incorrect code, it would cause an assert, it it should produce the correct expected pointer. Standards aside, in the absence of asserts there should be nothing in the compiled program that is in the way of returning the correct pointer in this specific situation. --=20 You are receiving this mail because: You are the assignee for the bug.=