While testing the patch for TR15581 I encountered this ICE, which is not strictly related to the patch itself, since I reproduced below with the base compiler. The base compiler should refuse the code, the patched compiler should accept it.
[EMAIL PROTECTED] ALLOCATABLE]$ gfortran -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc-4.2-20060715/configure --prefix=/usr/local/gcc42 Thread model: posix gcc version 4.2.0 20060715 (experimental) [EMAIL PROTECTED] ALLOCATABLE]$ gfortran -c test2.f90 test2.f90: In function 'foo': test2.f90:1: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:148 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. -- Summary: ICE on allocatable codes Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sfilippone at uniroma2 dot it GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28416