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++/47771] New: gcc crashes on MinGW platform


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


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