From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D17C43857C69; Mon, 30 Aug 2021 08:27:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D17C43857C69 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/102098] ICE when #include with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220 Date: Mon, 30 Aug 2021 08:27:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 11.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2021 08:27:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102098 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ICE when #include |ICE when #include | with | with |-fmodules-ts -std=3Dc++20 |-fmodules-ts -std=3Dc++20 | |since | |r11-7530-g1e5cdb9f896fb220 Status|WAITING |NEW --- Comment #3 from Martin Li=C5=A1ka --- 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 struct _Rb_tree_iterator { typedef _Rb_tree_iterator _Self; friend operator=3D=3D(_Self, _Self) {} }; template struct _Rb_tree { typedef _Rb_tree_iterator<_Val> iterator; }; template struct map { typedef typename _Rb_tree<_Key>::iterator iterator; }; struct std_category { bool equivalent(const error_condition &) const; }; map::iterator __trans_tmp_2; inline Trans_NS__V2_error_category const &to_std_category() { map::iterator i; i =3D=3D __trans_tmp_2; } inline bool std_category::equivalent(const error_condition &condition) cons= t { dynamic_cast(&condition.category()); } # 0 "" 2 export module foo; Started with r11-7530-g1e5cdb9f896fb220.=