C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Named Return Value Optimisation [[nrvo]]

From: Thiago Macieira <thiago_at_[hidden]>
Date: Tue, 10 Feb 2026 11:06:07 -0800
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'?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel Data Center - Platform & Sys. Eng.

Received on 2026-02-10 19:06:13