Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 May 2024 23:16:21 +0000
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
Message-ID:  <bug-279443-29464-AKEBOnqFML@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-279443-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-279443-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=3D279443

--- Comment #4 from Yuri Victorovich <yuri@freebsd.org> ---
(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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279443-29464-AKEBOnqFML>