http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51146
Bug #: 51146
Summary: The name clog for a global variable triggers a
segfault inside std::pow
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: alpha...@hotmail.com
Adding a global variable to the code with a name like clog, while using
std::pow on a std::complex triggers a segfault when std::pow is
reached. A simple example ( http://codepad.org/4Ekpgj91 ):
#include
#include
#include
int clog=0;
int main()
{
std::cout<<"test1"< b(1,-1);
std::cout<<"test "<