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 c++/98363] C++ 20 module ICE for fast_io library
Date: Fri, 18 Dec 2020 09:52:48 +0000	[thread overview]
Message-ID: <bug-98363-4-hlTLzRYdla@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-98363-4@http.gcc.gnu.org/bugzilla/>

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needs-bisection,            |
                   |needs-reduction             |

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case:

cat pr98363.C
module;
# 1 "" 1
template <typename _Derived, typename _Base>
concept derived_from = __is_base_of(_Base, _Derived);
namespace ranges {
int swap;
}
template <typename> concept swappable = requires { ranges::swap; };
template <typename _Tp> concept movable = swappable<_Tp>;
namespace __detail {
template <typename _Tp, typename>
concept __weakly_eq_cmp_with = requires(_Tp __t) {
  __t;
};
} // namespace __detail
template <typename> struct iterator_traits;
struct input_iterator_tag;
namespace __detail {
template <typename _Iter> using __iter_concept = _Iter;
}
template <typename _Iter> concept weakly_incrementable = movable<_Iter>;
template <typename _Iter>
concept input_or_output_iterator = weakly_incrementable<_Iter>;
template <typename _Sent, typename _Iter>
concept sentinel_for = __detail::__weakly_eq_cmp_with<_Sent, _Iter>;
template <typename _Iter>
concept input_iterator =
    derived_from<__detail::__iter_concept<_Iter>, input_iterator_tag>;
template <typename> struct iterator;
template <typename _Iterator>
class reverse_iterator
    : iterator<typename iterator_traits<_Iterator>::value_type> {};
template <input_or_output_iterator _It, sentinel_for<_It>>
class common_iterator;
template <input_iterator _It, typename _Sent>
struct iterator_traits<common_iterator<_It, _Sent>>;
class basic_string_view {
  using value_type = int;
  using const_iterator = value_type;
  using const_reverse_iterator = reverse_iterator<const_iterator>;
};
# 3 "" 2
export module hello;
void greeter(basic_string_view);

Started with r11-6084-g4efde6781bba8d64.

  parent reply	other threads:[~2020-12-18  9:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-17 23:06 [Bug c++/98363] New: " unlvsur at live dot com
2020-12-17 23:07 ` [Bug c++/98363] " unlvsur at live dot com
2020-12-18  9:01 ` marxin at gcc dot gnu.org
2020-12-18  9:52 ` marxin at gcc dot gnu.org [this message]
2020-12-18 12:45 ` nathan at gcc dot gnu.org
2020-12-18 15:04 ` unlvsur at live dot com
2020-12-19  2:59 ` unlvsur at live dot com
2024-01-08 17:39 ` ppalka at gcc dot gnu.org
2024-01-08 17:40 ` ppalka at gcc dot gnu.org

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-98363-4-hlTLzRYdla@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).