Commit cf677bb8 by Jerry DeLisle

re PR fortran/42526 (bogus truncation warning for default-initialized character components)

2010-08-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/42526
	* gfortran.dg/char_component_initializer_1.f90: New test.

From-SVN: r163220
parent 9b821a09
2010-08-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/42526
* gfortran.dg/char_component_initializer_1.f90: New test.
2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
PR tree-optimization/45241
......
! { dg-do run }
! { dg-options "-Wall" }
! Added -Wall option to make sure PR42526 does not show up again.
program gfcbug62
implicit none
character(len=16) :: tdefi(2) = (/'0z1jan0000','1hr '/)
type t_ctl
character(len=16) :: tdefi(2) = (/'0z1jan0000','1hr '/)
end type t_ctl
type(t_ctl) :: ctl
integer :: i,k
i = 1
k = 1
if (tdefi(1) .ne. ctl%tdefi(1)) call abort ()
end program gfcbug62
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment