Commit a27369a5 by Jerry DeLisle

re PR fortran/34227 (initialized symbol in COMMON: Missing checks)

2007-11-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/34227
	* gfortran.dg/blockdata_5.f90: New test.
	* gfortran.dg/blockdata_6.f90: New test.

From-SVN: r130486
parent 296ea027
2007-11-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/34227
* gfortran.dg/blockdata_5.f90: New test.
* gfortran.dg/blockdata_6.f90: New test.
2007-11-27 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/34016
! { dg-do compile }
! { dg-options "-std=f95" }
! PR34227 Initialized symbol in COMMON: Missing checks
program main
implicit none
integer, parameter:: nmin = 2
character(len=3) :: emname(nmin)=(/'bar','baz'/)
common/nmstr/emname ! { dg-error "can only be COMMON in BLOCK DATA" }
end program main
! { dg-do compile }
! { dg-options "-std=f95" }
! PR34227 Initialized symbol in COMMON: Missing checks
program main
implicit none
integer, parameter:: nmin = 2
character(len=3) :: emname(nmin)
data emname/'bar','baz'/
common/dd/emname ! { dg-error "can only be COMMON in BLOCK DATA" }
end program main
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