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/102098] ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220
Date: Mon, 30 Aug 2021 08:27:55 +0000	[thread overview]
Message-ID: <bug-102098-4-yNSrD9p04f@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-102098-4@http.gcc.gnu.org/bugzilla/>

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE when #include           |ICE when #include
                   |<boost/asio.hpp> with       |<boost/asio.hpp> with
                   |-fmodules-ts -std=c++20     |-fmodules-ts -std=c++20
                   |                            |since
                   |                            |r11-7530-g1e5cdb9f896fb220
             Status|WAITING                     |NEW

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

$ cat pr102098.ii
module;
# 1 "" 1 3
struct Trans_NS__V2_error_category {
  virtual equivalent();
};
struct error_condition {
  Trans_NS__V2_error_category &category() const;
};
struct error_category {
  friend Trans_NS__V2_error_category const &to_std_category();
};
template <typename> struct _Rb_tree_iterator {
  typedef _Rb_tree_iterator _Self;
  friend operator==(_Self, _Self) {}
};
template <typename _Val> struct _Rb_tree {
  typedef _Rb_tree_iterator<_Val> iterator;
};
template <typename _Key, typename> struct map {
  typedef typename _Rb_tree<_Key>::iterator iterator;
};
struct std_category {
  bool equivalent(const error_condition &) const;
};
map<const error_category *, int>::iterator __trans_tmp_2;
inline Trans_NS__V2_error_category const &to_std_category() {
  map<const error_category *, std_category>::iterator i;
  i == __trans_tmp_2;
}
inline bool std_category::equivalent(const error_condition &condition) const {
  dynamic_cast<std_category *>(&condition.category());
}
# 0 "" 2
export module foo;

Started with r11-7530-g1e5cdb9f896fb220.

  parent reply	other threads:[~2021-08-30  8:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-27 14:42 [Bug c/102098] New: ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 accelerator0099 at gmail dot com
2021-08-30  7:31 ` [Bug c/102098] " marxin at gcc dot gnu.org
2021-08-30  7:49 ` pilarlatiesa at gmail dot com
2021-08-30  8:27 ` marxin at gcc dot gnu.org [this message]
2021-08-31 14:09 ` [Bug c++/102098] ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220 accelerator0099 at gmail dot com
2021-08-31 14:10 ` accelerator0099 at gmail dot com
2022-05-30  6:23 ` accelerator0099 at gmail dot com
2023-08-06  1:29 ` accelerator0099 at gmail dot com
2023-08-06  1:30 ` accelerator0099 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-102098-4-yNSrD9p04f@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).