Re: Warning: The structure contains misaligned fields



blitheli wrote:

Thank you very much. I understand it now.
By the way, what is the most important role of "sequence" in
fortran?

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.
.



Relevant Pages

  • Re: Some question to sequence and deallocating arrays
    ... Since sequence doesn't mean sequence, can we add something that does ... the independent declaration thing to work. ... much in the direction the Fortran standard has been going. ... architectures. ...
    (comp.lang.fortran)
  • Re: "Essential lisp utilities": where are they?
    ... "Returns last n elements of sequence as a new fresh ... Having a portable lisp reader implemented in lisp itself is likely to ... that I might use that reader to implement my package system fixes. ... Actually, this is only a "declaration", for these package references, ...
    (comp.lang.lisp)
  • Another XML Schema one: Named local declarations, whar are their contents?
    ... <schema xmlns="http://www.w3.org/2001/XMLSchema"</a>; ... contents declared by the top level n1 declaration -- or should I expect ...
    (comp.text.xml)
  • Re: Pointers to standard library functions
    ... Any function declared in a header may be additionally implemented ... declaration is not affected by such a macro. ... Such macros might not contain the sequence points that the ...
    (comp.lang.c)
  • Re: Unlimited polymorphic pointers
    ... The sequence attribute requires no deviation at all; ... versus in the declaration. ... exceptions are so-called numeric sequence types and character sequence ...
    (comp.lang.fortran)