[Bug 221423] gcc std::locale(LocaleName) crashes instead of throwing an exception

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 07 Apr 2022 16:33:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221423

--- Comment #19 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Mark Millard from comment #17)

Back to aarch64:

# g++11 -Wl,-rpath=/usr/local/lib/gcc11 locale_failure_test.cpp
# ./a.out
# ldd a.out
a.out:
        libstdc++.so.6 => /usr/local/lib/gcc11/libstdc++.so.6 (0x83400000)
        libm.so.5 => /lib/libm.so.5 (0x81a6f000)
        libgcc_s.so.1 => /usr/local/lib/gcc11/libgcc_s.so.1 (0x8265c000)
        libc.so.7 => /lib/libc.so.7 (0x83fbe000)

So use of -Wl,-rpath=/usr/local/lib/gcc11 makes things coherent in
my aarch64 context.

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