Each of the following lines triggers an ICE since GCC 3.3:

=======================================================
void* p = new __complex__ int ();
void* q = new int __attribute__((vector_size(8))) ();
=======================================================

bug.cc:1: internal compiler error: in build_zero_init, at cp/init.c:252
Please submit a full bug report, [etc.]

This is because build_zero_init doesn't handle COMPLEX_TYPE and VECTOR_TYPE.
Before GCC 3.3 the code was rejected.


-- 
           Summary: [4.0/4.1/4.2 regression] ICE with new and complex/vector
                    types
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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

Reply via email to