Since a few days the following code triggers an ICE with the latest SVN
version:


> cat bug.c
void* malloc(unsigned);

void f()
{
        void* p = malloc(0);
}

> g++ -fipa-pta bug.c
bug.c: In function 'void f()':
bug.c:5: internal compiler error: Segmentation fault


Compilation with gcc works as expected. Renaming 'malloc' solves (or hides?)
the problem.


-- 
           Summary: ICE with g++ -fipa-pta and malloc(?)
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wouter dot vermaelen at pi dot be


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30309

Reply via email to