[Bug c++/51146] The name clog for a global variable triggers a segfault inside std::pow

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Sep 30 09:14:10 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51146

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Starting in GCC 8, we warn about this:
<source>:5:5: warning: built-in function 'clog' declared as non-function
[-Wbuiltin-declaration-mismatch]
 int clog=0;
     ^~~~


I noticed that LLVM's libc++ does not call clog but just log.


More information about the Gcc-bugs mailing list