]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/41177 (Wrong base-object checks for type-bound procedures)
authorDaniel Kraft <d@domob.eu>
Tue, 8 Dec 2009 11:39:20 +0000 (12:39 +0100)
committerDaniel Kraft <domob@gcc.gnu.org>
Tue, 8 Dec 2009 11:39:20 +0000 (12:39 +0100)
commit41a394bbf8d47ae58aad6b9068cd6f0f27cc2f2f
tree97e379b084f6fe3298f9879b4b2d00a044c7693f
parent72d099cb27a5fedea22e2d69ce8d03e71120fddc
re PR fortran/41177 (Wrong base-object checks for type-bound procedures)

2008-12-08  Daniel Kraft  <d@domob.eu>

PR fortran/41177
* gfortran.dg/typebound_proc_4.f03: Remove check for wrong error.
* gfortran.dg/typebound_proc_13.f03: New test.

2008-12-08  Daniel Kraft  <d@domob.eu>

PR fortran/41177
* gfortran.h (struct symbol_attribute): New flag `class_pointer'.
* symbol.c (gfc_build_class_symbol): Set the new flag.
* resolve.c (update_compcall_arglist): Remove wrong check for
non-scalar base-object.
(check_typebound_baseobject): Add the correct version here as well
as some 'not implemented' message check in the old case.
(resolve_typebound_procedure): Check that the passed-object dummy
argument is scalar, non-pointer and non-allocatable as it should be.

From-SVN: r155086
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/resolve.c
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/typebound_call_4.f03
gcc/testsuite/gfortran.dg/typebound_proc_13.f03 [new file with mode: 0644]