------- Comment #5 from burnus at gcc dot gnu dot org 2010-08-28 14:05 ------- (In reply to comment #4) > It works though when explicitly specifying the size of z to allocate: > > logical, allocatable :: z(:) > allocate ( z(3), source = [ .true., .false., .true. ] )
Congratulation - you have found another bug: "C633 (R631) If allocate-object is an array either allocate-shape-spec-list shall appear or source-expr shall appear [...]" In your example both appear. ("source-expr" is either SOURCE= or MOLD=.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45440