https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118811

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Works on the trunk.
[apinski@xeond2 upstream-gcc-isel]$ ~/upstream-gcc-isel/bin/g++ -std=c++20
-fsanitize=address -fsanitize-address-use-after-scope -Wall -Wextra -Werror
-D_GLIBCXX_ASSERTIONS -D_GLIBCXX_DEBUG  t56.cc
LD_LIBRARY[apinski@xeond2 upstream-gcc-isel]$
LD_LIBRARY_PATH=${HOME}/upstream-gcc-isel/lib64 ./a.out
2025-02-10T03:37:10.001040Z Starting background thread
2025-02-10T03:37:09.999885Z Entering main
2025-02-10T03:37:11.016418Z Exiting main
2025-02-10T03:37:11.016641Z Destructing background thread
2025-02-10T03:37:11.043605Z Background thread shutting down
2025-02-10T03:37:11.044133Z Background thread shutdown complete
[apinski@xeond2 upstream-gcc-isel]$

This is with
```
[apinski@xeond2 upstream-gcc-isel]$ uname -a
Linux xeond2.wrightpinski.org 5.14.0-425.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed
Feb 21 18:27:37 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
[apinski@xeond2 upstream-gcc-isel]$ /lib64/libc.so.6
GNU C Library (GNU libc) stable release version 2.34.
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 11.4.1 20231218 (Red Hat 11.4.1-3).
libc ABIs: UNIQUE IFUNC ABSOLUTE
For bug reporting instructions, please see:
<https://www.gnu.org/software/libc/bugs.html>.
```

Reply via email to