[Bug c++/27270] New: ICE in process_init_constructor_array, at cp/typeck2.c:788

timj at gtk dot org gcc-bugzilla@gcc.gnu.org
Sun Apr 23 14:49:00 GMT 2006


with a recent gcc snapshot on i386:
  c++ (GCC) 4.2.0 20060325 (experimental)
the following tst program program:

template<typename Entry>                                                        
struct Array {                                                                  
  Entry *array[32];                                                             
  Array () :                                                                    
    array ( (Entry*[1]) { 0, 0 } )                                              
  {}                                                                            
};                                                                              
Array<void*> a;

compiled with:
  c++ -Wall arrayinit.cc
produces:
arrayinit.cc: In constructor 'Array<Entry>::Array() [with Entry = void*]':
arrayinit.cc:8:   instantiated from here
arrayinit.cc:5: internal compiler error: in process_init_constructor_array, at
cp/typeck2.c:788
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: ICE in process_init_constructor_array, at
                    cp/typeck2.c:788
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: timj at gtk dot org


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



More information about the Gcc-bugs mailing list