From nobody Fri May 31 23:07:22 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 4Vrf0B0hnkz5LbfQ for ; Fri, 31 May 2024 23:07:22 +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 4Vrf096RXxz4lfs for ; Fri, 31 May 2024 23:07:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717196841; a=rsa-sha256; cv=none; b=ggOqHbY2ukdKeKq08lMyO9Aciyf0nivyUnJ39Wx70I+powhdRxOUdFEgIehOp/2goJ5Sru +WqOyOpn1d9pUS4xaJJuWzpfC40jttuENQErHIUhPTAhA+/qtJUt+weYQDW335LmmrHHsd cugK8xm6dIAWJTcrzwyUTAf4lQ6txBwr1Wq4CITQR21qZ2gHKg5ByzJM9I6K5dYfc53VRj K/TZm1MPsfldSX6KoaVQ3QoE6ER9ULkQzGtSnPZeM21jszTQfpbuPdwX7Vh/1WeYwO15Tf 2VXDNAcC8ufAWD5KTqdNnBqzDuN5Zo+CxBh/PEvOzQg8Rt9vKp138Y8v57JWww== 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=1717196841; 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=wLy5R6zAloVh4d5WHPT7GfCqRQs+WPIhcMsMj0HHi/A=; b=TMttw/23yTGHusC/xhh5bTfh1L5o+gKrKFy4M93v4yp1Fzg/kqEonvnhoNkjIcobK56Xvj Hk7vPRTmef4qWRgTcheabmSj/bjhgjH7a66b41jsFrIGWk5giKp37IQuD+amQ2tUdpdf7w KPDIuuKYRvndZwcQhX+5rkpblYr6wtB9DvGyWkWjBzhvRtyOsaBSkGdN2MnEAqUG7eCmjA wsYVd9BHQa3UoyhMr0kmRhLeg0fgojkXqEPnOj0VohXwE18rogN62Aog+8E4gJM4PZpGsV s76qm20BmgRVzYfR+L7eoejEE0v5qGJspq9HMlA4O1UcJlg55ybF3yAfr+NehA== 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 4Vrf0960XKzk2Y for ; Fri, 31 May 2024 23:07:21 +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 44VN7LAv065042 for ; Fri, 31 May 2024 23:07:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44VN7LsX065041 for toolchain@FreeBSD.org; Fri, 31 May 2024 23:07:21 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:07:22 +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: marklmi26-fbsd@yahoo.com 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 #3 from Mark Millard --- cppreference.com reports the following for C only: 3) special case: & and * cancel each other, neither one is evaluated 4) special case: & and the * that is implied in [] cancel each other, only = the addition implied in [] is evaluated. For C++ it reports: Note that, unlike C99 and later C versions, there's no special case for the unary operator& applied to the result of the unary operator*. But I've not tried to see what any fairly modern C++ standard says about such and cppreference.com is not explicit about the & and [] combination in contexts that could possibly use &*(a+i) as a valid translation. If cppreference.com is correct, modern C++ may well require avoiding the &a[i] notation for the non-dereferenceable case: only use such for dereferenceable accesses, even for for likes of std::contiguous_iterator contexts. Again, I'm not sure because I've not analyzed any relevant version of the standard for the issue. --=20 You are receiving this mail because: You are the assignee for the bug.=