https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92702

--- Comment #2 from Yao Liu <yao....@compiler-dev.com> ---
(In reply to Tobias Burnus from comment #1)
> The following restriction of F2003 is also gone:
> 
> C528   (R501) If the VALUE attribute is specified, the length type parameter
> values shall be omitted or specified by initialization expressions.
> 
> F2008 + F2018 permit them.
> 
> Implementation choice (for characters and arrays): One can pass those with
> known bounds as ARRAY_TYPE (i.e. by value) or one passes them as a pointer
> to an ARRAY_TYPE (i.e. by reference).
> 
> Currently, for character they are passed by value as (known string-length)
> ARRAY_TYPE.

F2008:
C557 An entity with the VALUE attribute shall be a dummy data object that is
not an assumed-size array or a coarray, and does not have a coarray ultimate
component.

I have a question: like "character(*)" or "demension(::)", it's a assumed-size
character or array, is this situation premitted in F2008?

(In reply to Tobias Burnus from comment #1)
> The following restriction of F2003 is also gone:
> 
> C528   (R501) If the VALUE attribute is specified, the length type parameter
> values shall be omitted or specified by initialization expressions.
> 
> F2008 + F2018 permit them.
> 
> Implementation choice (for characters and arrays): One can pass those with
> known bounds as ARRAY_TYPE (i.e. by value) or one passes them as a pointer
> to an ARRAY_TYPE (i.e. by reference).
> 
> Currently, for character they are passed by value as (known string-length)
> ARRAY_TYPE.

F2008:
C557 An entity with the VALUE attribute shall be a dummy data object that is
not an assumed-size array or a coarray, and does not have a coarray ultimate
component.

I have a question: like "character(*)" or "demension(::)", it's a assumed-size
character or array, is this situation premitted in F2008?

Reply via email to