public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/104731] New: 27_io/filesystem/iterators/error_reporting.cc FAILs
@ 2022-03-01 10:40 ro at gcc dot gnu.org
  2022-03-01 10:41 ` [Bug libstdc++/104731] " ro at gcc dot gnu.org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: ro at gcc dot gnu.org @ 2022-03-01 10:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104731
           Summary: 27_io/filesystem/iterators/error_reporting.cc FAILs
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
            Target: *-*-solaris2.11

Since 20220202, the 27_io/filesystem/iterators/error_reporting.cc test FAILs on
Solaris (32 and 64-bit, sparc and x86):

+FAIL: 27_io/filesystem/iterators/error_reporting.cc (test for excess errors)

Excess errors:
/var/gcc/regression/master/11.4-gcc-gas/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:431:
warning: 'void* __builtin_memcpy(void*, const void*, unsigned int)' writing 7
bytes into a region of size 6 overflows the destination [-Wstringop-overflow=]

Full output is

In file included from
/var/gcc/regression/master/11.4-gcc-gas/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:40,
                 from
/var/gcc/regression/master/11.4-gcc-gas/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/master/11.4-gcc-gas/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/master/11.4-gcc-gas/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/master/11.4-gcc-gas/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:39,
                 from
/vol/gcc/src/hg/master/local/libstdc++-v3/include/precompiled/stdc++.h:54:
In static member function 'static std::char_traits<char>::char_type*
std::char_traits<char>::copy(char_type*, const char_type*, std::size_t)',
    inlined from 'dirent* readdir(DIR*)' at
/vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/27_io/filesystem/iterators/error_reporting.cc:52:
/var/gcc/regression/master/11.4-gcc-gas/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:431:
warning: 'void* __builtin_memcpy(void*, const void*, unsigned int)' writing 7
bytes into a region of size 6 overflows the destination [-Wstringop-overflow=]
/vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/27_io/filesystem/iterators/error_reporting.cc:
In function 'dirent* readdir(DIR*)':
/var/gcc/regression/master/11.4-gcc-gas/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:431:
warning: 'void* __builtin_memcpy(void*, const void*, unsigned int)' writing 7
bytes into a region of size 6 overflows the destination [-Wstringop-overflow=]
/vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/27_io/filesystem/iterators/error_reporting.cc:
In function 'dirent* readdir(DIR*)':
/vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/27_io/filesystem/iterators/error_reporting.cc:31:
note: at offset 18 into destination object 'global_dirent' of size 24

<sys/dirent.h> has

        char            d_name[1];      /* name of file */

which conforms to POSIX.1 AFAICS.

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2023-04-27 20:08 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-01 10:40 [Bug libstdc++/104731] New: 27_io/filesystem/iterators/error_reporting.cc FAILs ro at gcc dot gnu.org
2022-03-01 10:41 ` [Bug libstdc++/104731] " ro at gcc dot gnu.org
2022-03-01 12:27 ` redi at gcc dot gnu.org
2022-03-01 12:30 ` redi at gcc dot gnu.org
2022-03-01 12:33 ` redi at gcc dot gnu.org
2022-05-06  8:32 ` jakub at gcc dot gnu.org
2022-05-06 13:52 ` cvs-commit at gcc dot gnu.org
2022-05-06 13:54 ` redi at gcc dot gnu.org
2022-05-09 10:13 ` ro at CeBiTec dot Uni-Bielefeld.DE
2022-05-09 11:27 ` redi at gcc dot gnu.org
2022-05-09 11:29 ` cvs-commit at gcc dot gnu.org
2022-05-09 11:33 ` ro at CeBiTec dot Uni-Bielefeld.DE
2022-05-09 12:02 ` cvs-commit at gcc dot gnu.org
2022-05-09 12:03 ` redi at gcc dot gnu.org
2022-06-15  8:15 ` cvs-commit at gcc dot gnu.org
2022-11-23 10:20 ` cvs-commit at gcc dot gnu.org
2022-12-21 11:37 ` cvs-commit at gcc dot gnu.org
2022-12-22 11:45 ` cvs-commit at gcc dot gnu.org
2023-04-27 20:08 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).