[Bug 279443] LIBCPP assertions are enabled in optimized builds when -DNDEBUG is given to clang

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 31 May 2024 23:16:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279443

--- 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.

-- 
You are receiving this mail because:
You are the assignee for the bug.