This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-11-15 20:20:48 UTC ---
(In reply to comment #3)
> For sure in the library there is nothing to fix, note in particular that the
> implementation does not include <complex.h>, neither names clog, only
> __builtin_clog.

But __builtin_clog always expands to extern "C" clog.  There is not much to be
done in the compiler here or libstdc++ really.  Just have to understand clog is
a reserved name under C99.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]