[committed] fortran/trans-openmp.cc: Use the correct member in gfc_omp_namelist [PR118745]

2025-02-04 Thread Tobias Burnus
Found using UBSAN - and thanks to Martin for running it with UBSAN and reporting it! append_args and adjust_args can be easily confused being spelled rather similarly and being used in the same code. Still, it makes sense to use the right list... (It seems as if the pointer dereferencing actuall

Re: [PING, PATCH] fortran: fix -MT/-MQ adding additional target [PR47485]

2025-02-04 Thread Jerry D
Committed as: commit e41a5a2a0832509fa1c0b7cab0c8001fadbd23d4 (HEAD -> master, origin/master, origin/HEAD) Author: Jerry DeLisle Date: Tue Feb 4 17:21:42 2025 -0800 Fortran: Fix PR 47485. The -MT and -MQ options should replace the default target in the generated dependency file

Bug 118750 - [14/15 Regression] ICE on associate with elemental function with polymorphic array actual argument

2025-02-04 Thread Damian Rouson
I just submitted the following as the above PR: The code below compiles without error with gfortran 12 and 13 but causes internal compiler errors with gfortran 14.2.0 and 15. % cat all.f90 implicit none type string_t end type associate(string_array => get_string([string_t::])) end ass

Re: [PING, PATCH] fortran: fix -MT/-MQ adding additional target [PR47485]

2025-02-04 Thread Jerry D
On 2/4/25 9:29 AM, Jerry D wrote: On 2/3/25 4:46 PM, Vincent Vanlaer wrote: On 4/02/2025 01:42, Jerry D wrote: On 2/3/25 2:14 PM, Vincent Vanlaer wrote: Hi all, Gentle ping for the patch below: https://gcc.gnu.org/pipermail/ fortran/2024-December/061467.html Best wishes, Vincent On 30/

Re: [15 Regression]: seg fault on accessing an elemental procedure dummy argument's deferred-length character component

2025-02-04 Thread Damian Rouson
This is now PR 118747 and it has been marked as blocking 68241. D On Tue, Feb 4, 2025 at 10:10 AM Damian Rouson wrote: > > I'm attempting to submit the code below to Bugzilla, but the site > appears to be hanging. I'll try again later. Presumably this should > be added to the deferred-length c

[15 Regression]: seg fault on accessing an elemental procedure dummy argument's deferred-length character component

2025-02-04 Thread Damian Rouson
I'm attempting to submit the code below to Bugzilla, but the site appears to be hanging. I'll try again later. Presumably this should be added to the deferred-length character metabug. This code executes without error when compiled with gfortran 14.2.0, but seg faults when compiled with a recent

Re: [PING, PATCH] fortran: fix -MT/-MQ adding additional target [PR47485]

2025-02-04 Thread Jerry D
On 2/3/25 4:46 PM, Vincent Vanlaer wrote: On 4/02/2025 01:42, Jerry D wrote: On 2/3/25 2:14 PM, Vincent Vanlaer wrote: Hi all, Gentle ping for the patch below: https://gcc.gnu.org/pipermail/ fortran/2024-December/061467.html Best wishes, Vincent On 30/12/2024 00:19, Vincent Vanlaer wrot

Re: [Patch, fortran] PR115265 - Generic function for constructor not invoked for same-name derived type with procedure pointer component

2025-02-04 Thread Andre Vehreschild
Hi Paul, when the testcase adds a new way, that is not tested yet, then please add it. Otherwise I'd say there are already enough tests in the suite making it run for a long time. Did you try how easy the backport is? When it simply applies, then I'd say, do it. If you experience major issues, th

[Patch, fortran] PR115265 - Generic function for constructor not invoked for same-name derived type with procedure pointer component

2025-02-04 Thread Paul Richard Thomas
Hi All, This PR was fixed by the patch for PR109066. I have had the attached testcase in my tree for more than a week now and I propose to push it tomorrow, unless there are any objections. The reporter has requested that the patch be backported. Neither PR is a regression and component defined a

Re: [PATCH] OpenMP: Improve Fortran metadirective diagnostics [PR107067]

2025-02-04 Thread Tobias Burnus
Hi Sandra, hello world, Sandra Loosemore wrote: gcc/fortran/ChangeLog PR middle-end/107067 * parse.cc (parse_omp_do): Diagnose missing "OMP END METADIRECTIVE" after loop. (parse_omp_structured_block): Likewise for strictly structured block. (parse_omp_meta