public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/107049] New: 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
@ 2022-09-27  7:54 marxin at gcc dot gnu.org
  2022-09-27  7:55 ` [Bug libstdc++/107049] " marxin at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-09-27  7:54 UTC (permalink / raw)
  To: gcc-bugs

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

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

end of thread, other threads:[~2022-09-27 14:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-27  7:54 [Bug libstdc++/107049] New: 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 marxin at gcc dot gnu.org
2022-09-27  7:55 ` [Bug libstdc++/107049] " marxin at gcc dot gnu.org
2022-09-27  7:56 ` marxin at gcc dot gnu.org
2022-09-27  8:20 ` redi at gcc dot gnu.org
2022-09-27  8:28 ` redi at gcc dot gnu.org
2022-09-27  8:33 ` redi at gcc dot gnu.org
2022-09-27  8:41 ` [Bug c++/107049] " redi at gcc dot gnu.org
2022-09-27 10:35 ` redi at gcc dot gnu.org
2022-09-27 13:00 ` cvs-commit at gcc dot gnu.org
2022-09-27 13:01 ` redi at gcc dot gnu.org
2022-09-27 14:19 ` ville.voutilainen at gmail dot com

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).