[Bug c++/47771] New: gcc crashes on MinGW platform
parvez_ahmad at yahoo dot co.uk
gcc-bugzilla@gcc.gnu.org
Wed Feb 16 20:15:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: parvez_ahmad@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
More information about the Gcc-bugs
mailing list