From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CCF9C3844053; Thu, 18 May 2023 01:29:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CCF9C3844053 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684373381; bh=/Obq+ao+vsm6QFeUIwOZqex76Wd7jkMzNVB18JIr7b8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Za+SXETMwWEKOtyk73mkfKr7b3G//nAFbg+4zpUUbu3afuCUTj7AkLszjaJRBWPs4 QXoxi3DgRs6e0XGWomd9I54lX/Zg/JpQ3bUI8DlO+ZCvdLce5VDQVkoslMMpd2s4aM Z/5/p43VhiLOAV1F6HCqPJmjEnsXz5fRty6FsKmc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106026] ICE: error reporting routines re-entered. Date: Thu, 18 May 2023 01:29:41 +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: 13.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106026 --- Comment #3 from Andrew Pinski --- Reduced to: ``` struct k { template auto operator()(CPO cpo, Args &&...args) const -> decltype(tag_invoke(cpo, args...)) { return tag_invoke(cpo, args...); } }; k j{}; struct nn { template friend void tag_invoke(nn, T &&) { } auto operator()(auto x) const { return j(*this, x); } }; constexpr nn h; template concept has_extents =3D requires(T t) { h(t); }; template constexpr void tag_invoke(nn, T &&) {} static_assert(has_extents); ```=