Commit 9c9c6199 by Janus Weil

re PR fortran/55959 ([OOP] ICE in in gfc_simplify_expr, at fortran/expr.c:1920)

2013-04-13  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55959
	* expr.c (gfc_simplify_expr): Branch is not unreachable.


2013-04-13  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55959
	* gfortran.dg/typebound_proc_29.f03: New.

From-SVN: r197943
parent 1f397f45
2013-04-13 Janus Weil <janus@gcc.gnu.org>
PR fortran/55959
* expr.c (gfc_simplify_expr): Branch is not unreachable.
2013-04-12 Janus Weil <janus@gcc.gnu.org>
PR fortran/56266
......
......@@ -1916,7 +1916,6 @@ gfc_simplify_expr (gfc_expr *p, int type)
case EXPR_COMPCALL:
case EXPR_PPC:
gcc_unreachable ();
break;
}
......
2013-04-13 Janus Weil <janus@gcc.gnu.org>
PR fortran/55959
* gfortran.dg/typebound_proc_29.f03: New.
2013-04-12 Janus Weil <janus@gcc.gnu.org>
PR fortran/56266
......
! { dg-do compile }
!
! PR 55959: [OOP] ICE in in gfc_simplify_expr, at fortran/expr.c:1920
!
! Contributed by Tilo Schwarz <tilo@tilo-schwarz.de>
module pdfs
type :: pdf
contains
procedure, nopass :: getx
end type
contains
real function getx()
end function
end module
program abstract
use pdfs
type(pdf) pp
print pp%getx() ! { dg-error "must be of type default-kind CHARACTER or of INTEGER" }
end program
! { dg-final { cleanup-modules "pdfs" } }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment