re PR fortran/78239 (ICE in char_len_param_value, at fortran/decl.c:926, with -fimplicit-none)
2016-12-17 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/78239 * decl.c(char_len_param_value): Also check for -fimplicit-none when determining if implicit none is in force. 2016-12-17 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/78239 * gfortran.dg/fimplicit_none_1.f90: New test. * gfortran.dg/fimplicit_none_2.f90: New test. From-SVN: r243773
This commit is contained in:
parent
c5b1ea2558
commit
52fd48aeea
@ -1,3 +1,9 @@
|
||||
2016-12-17 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||||
|
||||
PR fortran/78239
|
||||
* decl.c(char_len_param_value): Also check for -fimplicit-none
|
||||
when determining if implicit none is in force.
|
||||
|
||||
2016-12-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR fortran/78622
|
||||
|
@ -1,3 +1,9 @@
|
||||
2016-12-17 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||||
|
||||
PR fortran/78239
|
||||
* gfortran.dg/fimplicit_none_1.f90: New test.
|
||||
* gfortran.dg/fimplicit_none_2.f90: New test.
|
||||
|
||||
2016-12-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
|
||||
|
||||
* gcc.target/powerpc/byte-in-either-range-0.c: New test.
|
||||
|
6
gcc/testsuite/gfortran.dg/fimplicit_none_1.f90
Normal file
6
gcc/testsuite/gfortran.dg/fimplicit_none_1.f90
Normal file
@ -0,0 +1,6 @@
|
||||
! { dg-do compile }
|
||||
! { dg-options "-fimplicit-none" }
|
||||
subroutine s(n) ! { dg-error "has no IMPLICIT type" }
|
||||
character(n) :: c ! { dg-error "Scalar INTEGER expression expected" }
|
||||
c = 'c' ! { dg-error "has no IMPLICIT type" }
|
||||
end
|
6
gcc/testsuite/gfortran.dg/fimplicit_none_2.f90
Normal file
6
gcc/testsuite/gfortran.dg/fimplicit_none_2.f90
Normal file
@ -0,0 +1,6 @@
|
||||
! { dg-do compile }
|
||||
! { dg-options "-fimplicit-none" }
|
||||
! PR fortran/78239 - used to ICE
|
||||
program p
|
||||
character(*), parameter :: z(2) = [character(n) :: 'x', 'y'] ! { dg-error "Scalar INTEGER expression expected" }
|
||||
end
|
Loading…
Reference in New Issue
Block a user