------- Comment #1 from burnus at gcc dot gnu dot org  2008-06-04 20:19 -------
Created an attachment (id=15720)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15720&action=view)
Incomplete patch

Fortran 2008 supports c_sizeof which is identical to gfortran's sizeof.

This patch does the following:

- Implements c_sizeof (one line in intrinsic.c)
- Fixes argument (sizeof(x) not sizeof(i)) - intrinsic.c
- Document new option  - intrinsic.texi
- trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Don't create
  {
    integer(kind=8) bytes.1;
    i = 4;
  }
  in the simple case but simply "i = 4".
- simplify.c: Add gfc_simplify_sizeof:
  This partially works, is currently quite hacky and fails for substrings.

TODO: Fix the last item.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36437

Reply via email to