From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EB29E3857B99; Thu, 7 Jul 2022 12:16:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB29E3857B99 From: "ed at catmur dot uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106074] Spurious Wstringop-overflow for int-to-string with SSE4 Date: Thu, 07 Jul 2022 12:16:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: ed at catmur dot uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2022 12:16:54 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106074 --- Comment #1 from Ed Catmur --- Another example, using Date 3.0.1: #include void f(std::istream s) { std::chrono::system_clock::time_point tp; date::from_stream(s, "%Y", tp); } https://godbolt.org/z/fscqTd947 In file included from /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_pair.h:61, from /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:64, from /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/algorithm:60, from /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:44, from :1: In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {char&, const char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits;= Args =3D {int&, char&, const char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6474:9: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; Args =3D {int&, ch= ar&, const char&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 19 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [3, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 19 into destination object 'buf' of size 11 In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {char&, const char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits;= Args =3D {int&, char&, const char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6474:9: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; Args =3D {int&, ch= ar&, const char&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 20 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [4, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 20 into destination object 'buf' of size 11 In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {char&, const char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits;= Args =3D {int&, char&, const char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6474:9: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; Args =3D {int&, ch= ar&, const char&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 21 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [5, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 21 into destination object 'buf' of size 11 In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {char&, const char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits;= Args =3D {int&, char&, const char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6474:9: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; Args =3D {int&, ch= ar&, const char&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 22 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [6, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 22 into destination object 'buf' of size 11 In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6501:1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits;= Args =3D {int&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:647= 4:9: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; Args =3D {int&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 19 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [3, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 19 into destination object 'buf' of size 11 In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6501:1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits;= Args =3D {int&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:647= 4:9: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; Args =3D {int&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 20 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [4, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 20 into destination object 'buf' of size 11 In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6501:1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits;= Args =3D {int&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:647= 4:9: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; Args =3D {int&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 21 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [5, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 21 into destination object 'buf' of size 11 In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6501:1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits;= Args =3D {int&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:647= 4:9: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, CharT, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; Args =3D {int&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 22 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [6, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 22 into destination object 'buf' of size 11 In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {const char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, int, Args&& ...) [= with CharT =3D char; Traits =3D std::char_traits; Args =3D {const char&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 19 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [3, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 19 into destination object 'buf' of size 11 In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {const char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, int, Args&& ...) [= with CharT =3D char; Traits =3D std::char_traits; Args =3D {const char&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 20 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [4, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 20 into destination object 'buf' of size 11 In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {const char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, int, Args&& ...) [= with CharT =3D char; Traits =3D std::char_traits; Args =3D {const char&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 21 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [5, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 21 into destination object 'buf' of size 11 In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {const char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, int, Args&& ...) [= with CharT =3D char; Traits =3D std::char_traits; Args =3D {const char&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 22 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [6, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 22 into destination object 'buf' of size 11 In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, int, Args&& ...) [= with CharT =3D char; Traits =3D std::char_traits; Args =3D {char&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 19 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [3, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 19 into destination object 'buf' of size 11 In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, int, Args&& ...) [= with CharT =3D char; Traits =3D std::char_traits; Args =3D {char&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 20 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [4, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 20 into destination object 'buf' of size 11 In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, int, Args&& ...) [= with CharT =3D char; Traits =3D std::char_traits; Args =3D {char&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 21 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [5, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 21 into destination object 'buf' of size 11 In function 'constexpr std::_Require = >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_= Tp&, _Tp&) [with _Tp =3D char]', inlined from 'constexpr void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 =3D char*; _ForwardIterator2 =3D= char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algobase.h:18= 2:11, inlined from 'constexpr void std::__reverse(_RandomAccessIterator, _RandomAccessIterator, random_access_iterator_tag) [with _RandomAccessItera= tor =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1107:1= 8, inlined from 'constexpr void std::reverse(_BIter, _BIter) [with _BIter = =3D char*]' at /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:1134:2= 1, inlined from 'void date::detail::read(std::basic_istream<_CharT, _Trait= s>&, int, Args&& ...) [with CharT =3D char; Traits =3D std::char_traits; A= rgs =3D {char&}]' at /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6513:21: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/move.h:205:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 205 | __a =3D _GLIBCXX_MOVE(__b); | ^ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h: In function 'v= oid date::detail::read(std::basic_istream<_CharT, _Traits>&, int, Args&& ...) [= with CharT =3D char; Traits =3D std::char_traits; Args =3D {char&}]': /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 22 into destination object 'buf' of size 11 6506 | CharT buf[std::numeric_limits::digits10+2u] =3D {= }; | ^~~ /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset [6, 11] into destination object 'buf' of size 11 /opt/compiler-explorer/libs/date/v3.0.1/include/date/date.h:6506:15: note: = at offset 22 into destination object 'buf' of size 11=