Re: [PATCH, v1] PR fortran/48958 - Add runtime diagnostics for SIZE intrinsic function

2020-11-16 Thread Harald Anlauf
Hi Thomas, thanks for the comments. > It feels a bit strange to have a check for an allocatable > behind -fcheck=pointer, but I'm not sure that introducing > a special check option would really be worth it. Yes, I thought about that. There's already a discrepancy between the GFC_RTCHECK_* in li

Re: [PATCH, v1] PR fortran/48958 - Add runtime diagnostics for SIZE intrinsic function

2020-11-15 Thread Thomas Koenig via Gcc-patches
Hi Harald, Feedback, such as comments for improvement, are welcome. It feels a bit strange to have a check for an allocatable behind -fcheck=pointer, but I'm not sure that introducing a special check option would really be worth it. Regarding pointers: They are usually not nullified (unless th

[PATCH, v1] PR fortran/48958 - Add runtime diagnostics for SIZE intrinsic function

2020-11-14 Thread Harald Anlauf
Dear all, here is a first version to check the status of ALLOCATABLE and POINTER arguments to the SIZE intrinsic at runtime. What it does not yet cover is situations like complex, allocatable :: z(:) print *, size (z% re) Feedback, such as comments for improvement, are welcome. As is, the