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

Simon Marchi <simark at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simark at gcc dot gnu.org

--- Comment #1 from Simon Marchi <simark at gcc dot gnu.org> ---
We just hit this in GDB, but with std::span (I assume it's the same underlying
cause).

  CXX    unittests/span-selftests.o                                             
In file included from /usr/include/c++/16/debug/debug.h:90,                     
                 from /usr/include/c++/16/bits/stl_algobase.h:68,               
                 from /usr/include/c++/16/bits/hashtable_policy.h:37,           
                 from /usr/include/c++/16/bits/hashtable.h:37,                  
                 from /usr/include/c++/16/bits/unordered_map.h:33,              
                 from /usr/include/c++/16/unordered_map:43,                     
                 from /usr/include/c++/16/functional:80,                        
                 from
/home/smarchi/src/binutils-gdb/gdb/../gdbsupport/ptid.h:35,                     
                 from
/home/smarchi/src/binutils-gdb/gdb/../gdbsupport/common-defs.h:212,             
                 from /home/smarchi/src/binutils-gdb/gdb/defs.h:26,             
                 from <command-line>:                                           
/usr/include/c++/16/span: In instantiation of ‘constexpr std::span<_Type,
_Extent>::span(_It, _End) [with _It = const unsigned char*; _End = unsigned
char*; _Type = const unsigned char; long
 unsigned int _Extent = 18446744073709551615]’:                                 
/home/smarchi/src/binutils-gdb/gdb/unittests/span-selftests.c:332:41:  
required from here                                                              
  332 |   gdb::span<const gdb_byte> view1 (cp, p);                              
      |                                         ^                               
/usr/include/c++/16/span:196:11: error: no matching function for call to
‘__valid_range(const unsigned char*&, unsigned char*&)’                         
  196 |         { __glibcxx_requires_valid_range(__first, __last); }            
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to