From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 893523858281; Wed, 31 May 2023 15:40:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 893523858281 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685547606; bh=DnP3uf7WdWyxn5Fo94MPsMvNurY3CAAI8YIGhuZcUis=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lv8USTOmfBrcoBuX+mACXBqYTrS5RmDebi/NqsasbrvUgZ/FdNVhIh8EUh+mrRPz5 O4IMNw1NuwaYsi1mClhdRdhHMh3L12s7FOITvHaG96vPdM96kTsilqHRrP9JnsYhjz MCjSE0SfhJZTU+fP+CAJulgA4DYd5vOdLut8f3V0= From: "ldionne.2 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110000] GCC should implement exclude_from_explicit_instantiation Date: Wed, 31 May 2023 15:40:05 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ldionne.2 at gmail dot com 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=3D110000 --- Comment #9 from Louis Dionne --- (In reply to Andrew Pinski from comment #3) > I am getting a feeling this attribute is well defined enough. >=20 > Is it really just supposed to block explicit instantiation of templates? > Is there a decent set of testcases that can be used to match up the > implementations here? Because I suspect without those it will be implemen= ted > slightly different. Is there anything specific you're thinking about that would be insufficient= ly defined? It's possible that that's the case, and if so then we can define it properly and make sure Clang/GCC are aligned on the semantics. This is quite a painful issue for libc++ on GCC since the current solution = is to use `always_inline`, which has too many downsides. It used to be just an annoyance, but with the addition of libraries like `std::format`, using `always_inline` leads to a library that is literally unusable in some cases (compile times and code size just skyrockets). So yeah, we're much willing = to collaborate in order to make this work.=