Re: Warning: The structure contains misaligned fields
- From: "jamesgiles@xxxxxxx" <jamesgiles@xxxxxxx>
- Date: Mon, 28 Apr 2008 11:47:51 -0700 (PDT)
On Apr 28, 11:35 am, Craig Powers <eni...@xxxxxxxxxx> wrote:
...
The significance of SEQUENCE is that identically-declared types will be
treated as identical (i.e. if you were to repeat your declaration of
type(ccc) in a subroutine, it would be identical to the type(ccc)
declared in the module and one could be used as an actual argument
corresponding to the other as a dummy argument). The name implies that
the memory layout will be exactly as declared, but the standard does not
actually impose such a requirement.
It doesn't usually say anything about memory layout as such. However,
since SEQUENCE derived types may be used in COMMON and the components
be storage associated through that COMMON with non-derived-type
variables, it's hard to imagine how it would be implemented without
actually being in the order declared.
--
J. Giles
"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare
.
- Follow-Ups:
- Re: Warning: The structure contains misaligned fields
- From: Craig Powers
- Re: Warning: The structure contains misaligned fields
- From: glen herrmannsfeldt
- Re: Warning: The structure contains misaligned fields
- References:
- Warning: The structure contains misaligned fields
- From: blitheli
- Re: Warning: The structure contains misaligned fields
- From: Gordon Sande
- Re: Warning: The structure contains misaligned fields
- From: blitheli
- Re: Warning: The structure contains misaligned fields
- From: Craig Powers
- Warning: The structure contains misaligned fields
- Prev by Date: Re: Polyhedron Benchmark Update
- Next by Date: Re: Warning: The structure contains misaligned fields
- Previous by thread: Re: Warning: The structure contains misaligned fields
- Next by thread: Re: Warning: The structure contains misaligned fields
- Index(es):
Relevant Pages
|
|