[PATCH v2] Implement C23 const-preserving standard library macros

Joseph Myers josmyers@redhat.com
Wed Nov 19 17:46:17 GMT 2025


On Wed, 19 Nov 2025, Collin Funk wrote:

> Wouldn't this break a ton of existing code since HAYSTACK is evaluated
> multiple times [1]? There are likely examples for the others.

The controlling operand of _Generic is not evaluated.  Only the selected 
generic association is evaluated.

-- 
Joseph S. Myers
josmyers@redhat.com



More information about the Libc-alpha mailing list