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++/11266] New: [tree-ssa] ICE with placement new


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [tree-ssa] ICE with placement new
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P1
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: reichelt@gcc.gnu.org
                CC: dnovillo@gcc.gnu.org,gcc-bugs@gcc.gnu.org

The following code (taken from PR9280) crashes tree-ssa (20030620):

-------------------------------------------------------------------------------
void* operator new    (unsigned int, void*) throw();
void  operator delete (void*, void*)        throw();

struct A { A(); };

void foo() { new(new A)A; }
-------------------------------------------------------------------------------

The error message is:
bug.cc: In function `void foo()':
bug.cc:6: internal compiler error: in gimple_add_tmp_var, at gimplify.c:2483
Please submit a full bug report, [etc.]

Since this is a regressuion w.r.t. mainline, I set the priority to "P1".


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