blob: 95b15a8558450b5dbc8610aa58df8447a45e042f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
! { dg-do compile }
! Fixes PR37787 where the arithmetic overflow was not detected and an ICE ensued.
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
!
! In F2008 and F2018, overflow cannot happen, but a BOZ cannot appear
! in an array constructor.
!
program bug
implicit none
integer(1) :: a(2) = (/ Z'FF', Z'FF' /) ! { dg-error "cannot appear in" }
end program bug
|