Hi Yuao,

Am 12.11.25 um 15:39 schrieb Yuao Ma:
Hi Tobias, hi Harald,

The attached patch resolves the issue introduced in
r14-8400-g186ae6d2cb93ad. Reproducer: https://godbolt.org/z/3aGM6enjv.

I believe the root cause is that, for an allocatable argument, we need
to first check if it is nullptr before validating the inner value.

Regression test on x86_64 linux, ok for trunk?

Thanks,
Yuao

this looks basically fine to me.

Two comments from my side:

- please use distinct error stop codes (e.g.: 1, 2) in different places

- you could add a further sub-case to complete the testing by adding
  before the end of the main:

b = 1
has_value = b
is_allocated = .true.
is_present   = .true.
call test(b)
call test2(b)


As this is likely a regression, you may consider backporting to
affected branches.  Tobias?

Thanks,
Harald


Reply via email to