[Patch, Fortran] PRs 61881/61888 - Fix issues with SIZEOF, CLASS(*) and assumed-rank

Thomas Schwinge thomas@codesourcery.com
Tue Sep 2 17:03:00 GMT 2014


Hi Tobias!

On Sat, 26 Jul 2014 01:47:02 +0200, Tobias Burnus <burnus@net-b.de> wrote:
> 2014-07-26  Tobias Burnus  <burnus@net-b.de>
> 
> 	* check.c (gfc_check_sizeof): Permit for assumed type if and
> 	only if it has an array descriptor.
> 	* intrinsic.c (do_ts29113_check): Permit SIZEOF.
> 	(add_functions): SIZEOF is an Inquiry function.
> 	* intrinsic.texi (SIZEOF): Add note that only contiguous
> 	arrays are permitted.
> 	* trans-expr.c (gfc_conv_intrinsic_to_class): Handle assumed
> 	rank.
> 	* trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Handle
> 	assumed type + array descriptor, CLASS and assumed rank.
> 	(gfc_conv_intrinsic_storage_size): Handle class arrays.
> 
> 2014-07-26  Tobias Burnus  <burnus@net-b.de>
> 
> 	* gfortran.dg/sizeof_2.f90: Change dg-error.
> 	* gfortran.dg/sizeof_4.f90: New.
> 	* gfortran.dg/storage_size_1.f08: Correct expected
> 	value.

I noticed that the sizeof_4.f90 test case has not been checked in,
probably just forgot to svn add the file?

Searching for it in my emails, I also noticed that a year ago a similar
patch has been posted in
<http://news.gmane.org/find-root.php?message_id=%3CCAKwh3qi633jU-ojPKqRa_16DKWhXn9L2N0Wr4trAG9p1dJ-sXg%40mail.gmail.com%3E>,
but that is now probably obsolete.


Grüße,
 Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140902/95d7f3e1/attachment.sig>


More information about the Gcc-patches mailing list