This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25018] Segfault with simple expression
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Dec 2005 14:01:05 -0000
- Subject: [Bug fortran/25018] Segfault with simple expression
- References: <bug-25018-8513@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pault at gcc dot gnu dot org 2005-12-18 14:01 -------
Subject: Bug 25018
Author: pault
Date: Sun Dec 18 14:01:00 2005
New Revision: 108753
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108753
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/initialization_1.f90
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/expr.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/enum_5.f90
trunk/gcc/testsuite/gfortran.dg/g77/980616-0.f
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25018