https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36685
James Y Knight <foom at fuhm dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |foom at fuhm dot net
--- Comment #4 from James Y Knight <foom at fuhm dot net> ---
The interaction of __attribute__((weak)) and const int was recently explored in
Clang in this thread:
https://discourse.llvm.org/t/weak-attribute-semantics-on-const-variables/62311
Strangely, it appears that Clang and GCC have opposite odd behavior currently:
GCC appears to evaluate weak constants _only_ in constant evaluation (so long
as