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/30611] Confusing error message for negative ncopies in REPEAT



------- Comment #2 from fxcoudert at gcc dot gnu dot org  2007-02-04 21:33 -------
Subject: Bug 30611

Author: fxcoudert
Date: Sun Feb  4 21:33:10 2007
New Revision: 121581

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121581
Log:
        PR fortran/30611

        * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
        arguments only once. Generate check that NCOPIES argument is not
        negative.

        * intrinsics/string_intrinsics.c (string_repeat): Don't check
        if ncopies is negative.

        * gcc/testsuite/gfortran.dg/repeat_1.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/repeat_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/testsuite/ChangeLog
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/intrinsics/string_intrinsics.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30611


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