This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47771] New: gcc crashes on MinGW platform
- From: "parvez_ahmad at yahoo dot co.uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 Feb 2011 20:12:55 +0000
- Subject: [Bug c++/47771] New: gcc crashes on MinGW platform
- Auto-submitted: auto-generated
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