This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/25018] Segfault with simple expression



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]