re PR fortran/29441 ([4.1/4.2 only] non-constant parameter (constant) accepted)
fortran/ PR fortran/29441 * intrinsic.c (gfc_intrinsic_func_interface): Always check if intrinsic is allowed in initialization expression. testsuite/ PR fortran/29441 * gfortran.dg/initialization_4.f90: New test. From-SVN: r119101
This commit is contained in:
parent
e3a0e20064
commit
cbad228156
@ -1,17 +1,23 @@
|
||||
2006-11-22 Paul Thomas <pault@gcc.gnu.org>
|
||||
2006-11-22 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
|
||||
|
||||
PR fortran/29441
|
||||
* intrinsic.c (gfc_intrinsic_func_interface): Always check if
|
||||
intrinsic is allowed in initialization expression.
|
||||
|
||||
2006-11-22 Paul Thomas <pault@gcc.gnu.org>
|
||||
|
||||
PR fortran/25087
|
||||
* resolve.c (resolve_fl_procedure): Add an error if an external
|
||||
automatic character length function does not have an explicit
|
||||
interface.
|
||||
|
||||
2006-11-22 Paul Thomas <pault@gcc.gnu.org>
|
||||
2006-11-22 Paul Thomas <pault@gcc.gnu.org>
|
||||
|
||||
PR fortran/29652
|
||||
* interface.c (check_interface1): Use a local value, instead of
|
||||
the dummy, as the inner iterator over interface symbols.
|
||||
|
||||
2006-11-21 Paul Thomas <pault@gcc.gnu.org>
|
||||
2006-11-21 Paul Thomas <pault@gcc.gnu.org>
|
||||
|
||||
PR fortran/29820
|
||||
* trans-array.c (gfc_get_derived_type): Once done, spread the
|
||||
|
@ -3397,8 +3397,7 @@ got_specific:
|
||||
/* TODO: We should probably only allow elemental functions here. */
|
||||
flag |= (expr->ts.type != BT_INTEGER && expr->ts.type != BT_CHARACTER);
|
||||
|
||||
if (pedantic && gfc_init_expr
|
||||
&& flag && gfc_init_expr_extensions (specific))
|
||||
if (gfc_init_expr && flag && gfc_init_expr_extensions (specific))
|
||||
{
|
||||
if (gfc_notify_std (GFC_STD_GNU, "Extension: Evaluation of "
|
||||
"nonstandard initialization expression at %L", &expr->where)
|
||||
|
@ -1,3 +1,8 @@
|
||||
2006-11-22 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
|
||||
|
||||
PR fortran/29441
|
||||
* gfortran.dg/initialization_4.f90: New test.
|
||||
|
||||
2006-11-22 Ira Rosen <irar@il.ibm.com>
|
||||
|
||||
* gcc.dg/vect/vect-1.c: Additional loop is now vectorizable on
|
||||
|
6
gcc/testsuite/gfortran.dg/initialization_4.f90
Normal file
6
gcc/testsuite/gfortran.dg/initialization_4.f90
Normal file
@ -0,0 +1,6 @@
|
||||
! PR 29441 : No error was given for disallowed function in
|
||||
! initialization expression, even if -std=f95 was used
|
||||
! { dg-do compile }
|
||||
! { dg-options "-std=f95" }
|
||||
real, parameter :: pi = 4.0*Atan(1.0) ! { dg-error "Evaluation of nonstandard initialization expression" }
|
||||
end
|
Loading…
Reference in New Issue
Block a user