This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR20541 - allocatable components (TR15541)
- From: "THOMAS Paul Richard 169137" <Paul dot Richard dot THOMAS at cea dot fr>
- To: <fortran at gcc dot gnu dot org>, <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 5 Oct 2006 10:27:39 +0200
- Subject: Re: [Patch, fortran] PR20541 - allocatable components (TR15541)
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