Re: adding attributes

2022-11-06 Thread Thomas Koenig via Fortran
Hi Bernhard, If you think that we want to add support for that attribute, i can submit a proper patch. Just let me know please. I think this attribute makes sense, especially if people want to compile once and then port to different architectures. So, yes please submit a patch, if you would b

Re: [Patch] Fortran: Fix reallocation on assignment for kind=4 strings [PR107508]

2022-11-06 Thread Mikael Morin
Hello, Le 05/11/2022 à 23:28, Tobias Burnus a écrit : Prior to the attached patch, there is a problem with realloc on assignment with kind=4 characters as the string length was compared with the byte size, which was always true. (...) OK for mainline? The trans-array.c part looks good. A

Re: [Patch] Fortran: Fix reallocation on assignment for kind=4 strings [PR107508]

2022-11-06 Thread Tobias Burnus
Hello, On 06.11.22 21:32, Mikael Morin wrote: Le 05/11/2022 à 23:28, Tobias Burnus a écrit : OK for mainline? The trans-array.c part looks good. A couple of nits for the trans-expr.cc part: - /* Use the rhs string length and the lhs element size. */ - size = string_length; -