This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/18850] padding within a sequence type
- From: "Thomas dot Koenig at online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Dec 2004 08:37:24 -0000
- Subject: [Bug fortran/18850] padding within a sequence type
- References: <20041205195648.18850.Thomas.Koenig@online.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From Thomas dot Koenig at online dot de 2004-12-06 08:37 -------
(In reply to comment #1)
> Alternatively, do other compilers omit padding in sequence types?
ifort does so, unless the '-pad' option is given:
http://www.intel.com/software/products/compilers/flin/docs/for_ug2/cmp_algn.htm
So does Compaq fortran, unless you specify /align:sequence :
http://h18009.www1.hp.com/fortran/docs/vf-html/pg/pgualopt.htm
xlf also does it, but marks it as an extension:
http://www-1.ibm.com/support/docview.wss?uid=swg27003923&aid=1 , page 454:
# The size of a sequence derived type is equal to the number of bytes
# of storage needed to hold all of the components of that derived type.
The point seems somewhat to be in contention as far as a standards
requirement is concerned:
http://j3-fortran.org/doc/meeting/150/99-190.txt
I've changed the bug type to "enhancement" with this.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|WAITING |NEW
Ever Confirmed| |1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18850