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/38351] Poor error message for rank mismatch in operator args


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38351

--- Comment #4 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Sat Jun  9 17:38:24 2018
New Revision: 261365

URL: https://gcc.gnu.org/viewcvs?rev=261365&root=gcc&view=rev
Log:
2018-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>

        PR fortran/38351
        * resolve.c (resolve_operator): Provide better error message for
        derived type entity used in an binary intrinsic numeric operator.

2018-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>

        PR fortran/38351
        * gfortran.dg/pr38351.f90: New test.
        * gfortran.dg/typebound_operator_4.f03: Adjust for new error message.

Added:
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/pr38351.f90
Modified:
    branches/gcc-8-branch/gcc/fortran/ChangeLog
    branches/gcc-8-branch/gcc/fortran/resolve.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/typebound_operator_4.f03

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