re PR fortran/88008 (ICE in check_typebound_baseobject, at fortran/resolve.c:6058)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 18 Mar 2019 07:28:42 +0000 (07:28 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 18 Mar 2019 07:28:42 +0000 (07:28 +0000)
commit7e703f019b351ceb6c68da23bde1e1754746e1f2
treeeafd6c6ec1a074bc9f6aa628548136aeb7378a6b
parentaf52cce0afdf36a6ae6472a9f9ed279341f2dc23
re PR fortran/88008 (ICE in check_typebound_baseobject, at fortran/resolve.c:6058)

2019-03-17  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/88008
* gfortran.h (expr_t): Add EXPR_UNKNOWN.
* expr.c (gfc_copy_expr): Add EXPR_UNKNOWN to switch statement.
(gfc_simplify_expr): Likewise.
* module.c (mio_expr): Likewise.
* resovle.c (extract_compcall_passed_object): Issue error on
unknown type.
(check_typebound_baseobject): Issue error on wrong type.
* trans-expr.c (gfc_apply_interface_mapping_to_expr): Add
EXPR_UNKNOWN to switch statement.

2019-03-17  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/88008
 * gfortran.dg/typebound_call_31.f90: New test.

From-SVN: r269750
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/gfortran.h
gcc/fortran/module.c
gcc/fortran/resolve.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/typebound_call_31.f90 [new file with mode: 0644]