[libc++][format][chrono] Problems with chrono-specs
with short lifetime
#62074
Labels
libc++
libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Repro:
Build:
Currently libc++ stores
chrono-specs
asbasic_string_view
, which means that it might become dangling in some pathological cases (like the one presented here).Other builds:
Clang/libc++/ASAN/Windows
Clang/STL/ASAN (correct behaviour, STL stores *`chrono-specs`* in `vector`)
Compiler explorer: https://godbolt.org/z/hGK6456bY (this bug is present in libstdc++ too)
CC: @mordante
The text was updated successfully, but these errors were encountered: