http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47771
Summary: gcc crashes on MinGW platform Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: parvez_ah...@yahoo.co.uk Created attachment 23366 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23366 Contains the cpp file which caused the crash For the following program store in file crash.cpp: #include <iostream> #include <cmath> int main(int argc, char **argv) { int longint = static_cast<int>(pow(2, 32)); std::cout << longint; } -------------------------------------------------------------------- when gcc run with the following option: gcc crash.cpp -lstdc++ -lm causes a crash. The crash points to line no. 5