http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45889
Summary: Regression with I/O of element of allocatable array in
derived type
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: [email protected]
ReportedBy: [email protected]
The attached code fragment demonstrates a regression in gfortran 4.6 (02 Oct
2010 snapshot). An incorrect diagnostic is generated for correct code. The
code is correct and compiles with 4.5
$ /usr/local/gcc-4.6/bin/gfortran -c -Wall gfort-4.6.f90
gfort-4.6.f90:23.49:
write(*,*)(current_cell%species_symbol(i))
1
Error: Data transfer element at (1) cannot have ALLOCATABLE components