Re: [SC22WG14.32615] alx-0051r0 - don't misuse reserved identifier 'exp'
From: Joseph Myers <hidden>
Date: 2025-07-24 21:59:54
From: Joseph Myers <hidden>
Date: 2025-07-24 21:59:54
On Thu, 24 Jul 2025, Alejandro Colomar wrote:
quoted
It is not too broad. A compiler may define the identifier as a builtin. For instance... GCC! The following program fails to compile (note that I do not even include <math.h>): static int exp (void) { return 1; }
That's file scope, which is a context in which exp is reserved. The proposed change was about function prototype scope, in which it's not reserved. -- Joseph S. Myers josmyers@redhat.com