https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14505
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |msebor at gcc dot gnu.org Resolution|--- |WONTFIX --- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> --- The documented purpose of the __builtin_constant_p intrinsic is "to determine if a value is known to be constant at compile time." C11 specifies the identifier as "static const char __func__[] = "..." defined at function scope. While __func__ does qualify as an /address constant/ its value, or the address of any other object with static storage duration, isn't known to GCC at compile time. Since no further update to this request has been made in over 10 years, and since implementing it would result in an inconsistency with other static const arrays (which are not treated as a constant expression by GCC), I'm going to close it as WONTFIX. If you have a compelling reason for this enhancement that would outweigh or render moot the concerns above please feel free to reopen the request and provide your rationale.