public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [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
Date: Tue, 27 Sep 2022 07:54:49 +0000 [thread overview]
Message-ID: <bug-107049-4@http.gcc.gnu.org/bugzilla/> (raw)
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
next reply other threads:[~2022-09-27 7:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-27 7:54 marxin at gcc dot gnu.org [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-107049-4@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).