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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:aa8bdfee1db818b9a56908ab0197ff02c54bf281

commit r13-154-gaa8bdfee1db818b9a56908ab0197ff02c54bf281
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Fri May 6 14:31:06 2022 +0100

    libstdc++: Fix test that fails on Solaris [PR104731]

    On Solaris the dirent::d_name member is a single char, causing this test
    to fail with warnings about buffer overflow. Change the test to use a
    union with additional space for writing a string to the d_name member.

    libstdc++-v3/ChangeLog:

            PR libstdc++/104731
            * testsuite/27_io/filesystem/iterators/error_reporting.cc:
            Use a trailing char array as storage for dirent::d_name.

Reply via email to