https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107049
Bug ID: 107049 Summary: error: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator __sv_type() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __sv_type = std::basic_string_view<char>]’ is inaccessible within this context Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: jwakely.gcc at gmail dot com Target Milestone: --- Must be very recent change: g++ pdf.ii -c In file included from /usr/include/glib-2.0/glib/glib-typeof.h:41, from /usr/include/glib-2.0/glib/gatomic.h:30, from /usr/include/glib-2.0/glib/gthread.h:34, from /usr/include/glib-2.0/glib/gasyncqueue.h:34, from /usr/include/glib-2.0/glib.h:34, from /usr/include/glibmm-2.4/glibmm/unicode.h:23, from /usr/include/glibmm-2.4/glibmm/ustring.h:21, from /usr/include/gtkmm-3.0/gtkmm/dialog.h:6, from /home/abuild/rpmbuild/BUILD/inkscape-1.2.1_2022-07-14_9c6d41e410/src/extension/internal/pdfinput/pdf-input.h:21, from /home/abuild/rpmbuild/BUILD/inkscape-1.2.1_2022-07-14_9c6d41e410/src/extension/internal/pdfinput/pdf-input.cpp:19: /usr/include/c++/13/type_traits: In instantiation of ‘struct std::is_convertible<const GooString&, std::basic_string_view<char> >’: /usr/include/c++/13/type_traits:161:35: required by substitution of ‘template<class ... _Bn> std::__detail::__first_t<std::integral_constant<bool, true>, typename std::enable_if<(bool)(_Bn::value), void>::type ...> std::__detail::__and_fn(int) [with _Bn = {std::is_convertible<const GooString&, std::basic_string_view<char, std::char_traits<char> > >, std::__not_<std::is_convertible<const GooString*, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*> >, std::__not_<std::is_convertible<const GooString&, const char*> >}]’ /usr/include/c++/13/type_traits:177:42: required from ‘struct std::__and_<std::is_convertible<const GooString&, std::basic_string_view<char, std::char_traits<char> > >, std::__not_<std::is_convertible<const GooString*, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*> >, std::__not_<std::is_convertible<const GooString&, const char*> > >’ /usr/include/c++/13/bits/basic_string.h:155:8: required by substitution of ‘template<class _CharT, class _Traits, class _Alloc> template<class _Tp, class _Res> using std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv = std::enable_if_t<std::__and_<std::is_convertible<const _Tp&, std::basic_string_view<_CharT, _Traits> >, std::__not_<std::is_convertible<const _Tp*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>*> >, std::__not_<std::is_convertible<const _Tp&, const _CharT*> > >::value, _Res> [with _Tp = GooString; _Res = std::__cxx11::basic_string<char>&; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ /usr/include/c++/13/bits/basic_string.h:1493:9: required by substitution of ‘template<class _Tp> std::__cxx11::basic_string<char>::_If_sv<_Tp, std::__cxx11::basic_string<char>&> std::__cxx11::basic_string<char>::append(const _Tp&) [with _Tp = GooString]’ /usr/include/poppler/goo/GooString.h:112:49: required from here /usr/include/c++/13/type_traits:1387:30: error: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator __sv_type() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __sv_type = std::basic_string_view<char>]’ is inaccessible within this context In file included from /usr/include/c++/13/string:52, from /usr/include/c++/13/bits/locale_classes.h:40, from /usr/include/c++/13/bits/ios_base.h:41, from /usr/include/c++/13/streambuf:41, from /usr/include/c++/13/bits/streambuf_iterator.h:35, from /usr/include/c++/13/iterator:66, from /usr/include/glibmm-2.4/glibmm/ustring.h:25: /usr/include/c++/13/bits/basic_string.h:936:7: note: declared here