On Wed, Jul 09, 2025 at 08:50:08AM +0200, Andre Vehreschild wrote:
> 
> why shall the testcase be invalid?

See the 2nd bullet in Fortran 2023, 9.7.1.3 Allocation
of allocatable variables.

    An allocatable variable has a status of "unallocated"
    if it is not allocated.
    ...
    An allocatable variable with this status shall not be
    referenced or defined.

in 'list = [list, 'abc']' the right-hand reference makes the
code invalid if list is unallocated.

-- 
steve

Reply via email to