Re: [PATCH] Fortran: truncate constant string passed to character,value dummy [PR121727]

2025-09-01 Thread Harald Anlauf
Am 01.09.25 um 05:31 schrieb Jerry D: On 8/31/25 11:58 AM, Harald Anlauf wrote: Dear all, the attached fixes a missed optimization passing a constant character string to a scalar dummy with value attribute and shorter than the actual by truncating the latter at compile time. Regtested on x86_6

Re: [PATCH] fortran: implement conditional expression for fortran 2023

2025-09-01 Thread Tobias Burnus
Hi all, hi Yuao, Yuao Ma wrote: I mostly agree it looks okay. While I'm not that meticulous about diagnostics, I believe it should point to the '=' sign or the first character of the expression. Pointing to the middle, however, seems a bit odd. Looking at your patch, I understand what you mean

Re: [PATCH] fortran: implement conditional expression for fortran 2023

2025-09-01 Thread Yuao Ma
On Mon, Sep 1, 2025 at 6:58 PM Tobias Burnus wrote: > > Yuao Ma wrote: > > BTW, The current trunk seems to have some problems with diagnostic > > location: https://godbolt.org/z/bcrvn9xo4 > > In the last days, there were some diagnostic changes; possibly > those caused an intermittent issue? > > O

Re: [PATCH] fortran: implement conditional expression for fortran 2023

2025-09-01 Thread Tobias Burnus
Yuao Ma wrote: BTW, The current trunk seems to have some problems with diagnostic location: https://godbolt.org/z/bcrvn9xo4 In the last days, there were some diagnostic changes; possibly those caused an intermittent issue? Otherwise, it looks ok. Namely: The '1' points to the space after '='i