Re: [Patch, Fortran, OOP] PR 59143: Bogus warning with array-valued type-bound procedure

2013-11-25 Thread Janus Weil
Hi, + else if (ref-type == REF_COMPONENT ref-u.c.component-attr.function + ref-u.c.component-attr.proc_pointer + ref-u.c.component-attr.dimension) I wonder whether one should take care of functions returning BT_CLASS, but I think one doesn't need to.

Re: [Patch, Fortran, OOP] PR 59143: Bogus warning with array-valued type-bound procedure

2013-11-24 Thread Janus Weil
ping! 2013/11/18 Janus Weil ja...@gcc.gnu.org: Hi all, here is a straightforward patch to teach 'get_expr_storage_size' about type-bound procedures (which are handled internally as procedure-pointer components of the corresponding vtab). In that sense the patch should handle both TBPs as

Re: [Patch, Fortran, OOP] PR 59143: Bogus warning with array-valued type-bound procedure

2013-11-24 Thread Tobias Burnus
Janus Weil wrote: here is a straightforward patch to teach 'get_expr_storage_size' about type-bound procedures (which are handled internally as procedure-pointer components of the corresponding vtab). In that sense the patch should handle both TBPs as well as PPCs. Regtested on

Re: [Patch, Fortran, OOP] PR 59143: Bogus warning with array-valued type-bound procedure

2013-11-24 Thread Janus Weil
Hi Tobias, here is a straightforward patch to teach 'get_expr_storage_size' about type-bound procedures (which are handled internally as procedure-pointer components of the corresponding vtab). In that sense the patch should handle both TBPs as well as PPCs. Regtested on

Re: [Patch, Fortran, OOP] PR 59143: Bogus warning with array-valued type-bound procedure

2013-11-24 Thread Tobias Burnus
Hi Janus, Janus Weil wrote: + else if (ref-type == REF_COMPONENT ref-u.c.component-attr.function + ref-u.c.component-attr.proc_pointer + ref-u.c.component-attr.dimension) I wonder whether one should take care of functions returning BT_CLASS, but I think one