Date: Tue, 10 Feb 2026 20:38:11 +0100
Hi Thiago,
On 2026-02-10T11:06:07-0800, Thiago Macieira via Std-Proposals wrote:
> On Tuesday, 10 February 2026 10:55:23 Pacific Standard Time Alejandro Colomar
> via Std-Proposals wrote:
> > But [[comp::attr]] has never been ignorable. That ship has not sailed
> > yet.
>
> Yes they have and are. If I put a [[gnu::noclone]] attribute on a function and
> compile with Clang, it just tells me:
>
> warning: unknown attribute 'gnu::noclone' ignored; did you mean
> 'gnu::noinline'?
This is not being ignored. This is a diagnostic, which is all that is
required for a constraint violation (in C terms).
Cheers,
Alex
On 2026-02-10T11:06:07-0800, Thiago Macieira via Std-Proposals wrote:
> On Tuesday, 10 February 2026 10:55:23 Pacific Standard Time Alejandro Colomar
> via Std-Proposals wrote:
> > But [[comp::attr]] has never been ignorable. That ship has not sailed
> > yet.
>
> Yes they have and are. If I put a [[gnu::noclone]] attribute on a function and
> compile with Clang, it just tells me:
>
> warning: unknown attribute 'gnu::noclone' ignored; did you mean
> 'gnu::noinline'?
This is not being ignored. This is a diagnostic, which is all that is
required for a constraint violation (in C terms).
Cheers,
Alex
-- <https://www.alejandro-colomar.es>
Received on 2026-02-10 19:38:18
