-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<vector>: Using std::vector iterators in consteval function results in an error with /D_ITERATOR_DEBUG_LEVEL=2 #5171
Comments
This is probably a bug of MSVC which hasn't been analyzed yet: STL/tests/libcxx/expected_results.txt Lines 773 to 800 in 89ca073
Update: Reduced and reported DevCom-10808176. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Using iterators to iterate
std::vector
in a loop withinconsteval
function leads to an error "failure was caused by a read of a variable outside its lifetime"Command-line test case
Expected behavior
No error with
/ITERATOR_DEBUG_LEVEL=2
STL version
Additional context
Example on Godbolt
Could be worked around by compiling in release mode or using
_ITERATOR_DEBUG_LEVEL=1
(or 0)Hard to tell if the issue is in compiler or in iterator debug level machinery
The text was updated successfully, but these errors were encountered: