[Patch, fortran] PR20541 - allocatable components (TR15541)
THOMAS Paul Richard 169137
Paul.Richard.THOMAS@cea.fr
Thu Oct 5 08:28:00 GMT 2006
The eager amongst you will have noted an unrequited reference in the ChangeLog to
alloc_comp_constraint_3.f90. Here it is:
! { dg-do compile }
! Check that default initializer for allocatable components isn't accepted (PR
! 20541)
program main
type :: foo
integer, allocatable :: a(:) = [ 1 ] ! { dg-error "Initialization of allocatable" }
integer :: x ! Just to avoid "extra" error messages about empty type.
end type foo
end program main
Apologies
Paul
More information about the Fortran
mailing list