]> gcc.gnu.org Git - gcc.git/commit
re PR fortran/25018 (Segfault with simple expression)
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 18 Dec 2005 14:01:00 +0000 (14:01 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 18 Dec 2005 14:01:00 +0000 (14:01 +0000)
commite7f79e123c1536f13c4fb2196ad08067f0b256fb
tree6c71e69c0e04a0262415dfa77065f7d15252abf8
parentab9a1ff8ee9df7c87c1b1d75ab2424841694cb7b
re PR fortran/25018 (Segfault with simple expression)

2005-12-18  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/25018
*expr.c(check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

2005-12-18  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/25018
*gfortran.dg/initialization_1.f90: New test.
*gfortran.dg/enum_5.f90: Change dg-error to new message.
*gfortran.dg/g77/980616-0.f: The same.

From-SVN: r108753
gcc/cp/ChangeLog
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/enum_5.f90
gcc/testsuite/gfortran.dg/g77/980616-0.f
gcc/testsuite/gfortran.dg/initialization_1.f90 [new file with mode: 0644]
This page took 0.067057 seconds and 5 git commands to generate.