Re: [PATCH] Fortran: different character lengths in array constructor [PR93289]

2025-02-03 Thread Harald Anlauf
Am 03.02.25 um 19:31 schrieb Jerry D: On 2/3/25 2:49 AM, Richard Sandiford wrote: Steve Kargl writes: On Sat, Feb 01, 2025 at 09:49:17PM +0100, Harald Anlauf wrote: Am 01.02.25 um 21:03 schrieb Steve Kargl: On Sat, Feb 01, 2025 at 07:25:51PM +0100, Harald Anlauf wrote: the attached patch d

Re: [PATCH] Fortran: different character lengths in array constructor [PR93289]

2025-02-03 Thread Jerry D
On 2/3/25 2:49 AM, Richard Sandiford wrote: Steve Kargl writes: On Sat, Feb 01, 2025 at 09:49:17PM +0100, Harald Anlauf wrote: Am 01.02.25 um 21:03 schrieb Steve Kargl: On Sat, Feb 01, 2025 at 07:25:51PM +0100, Harald Anlauf wrote: the attached patch downgrades different constant character

Re: [PATCH] Fortran: different character lengths in array constructor [PR93289]

2025-02-03 Thread Richard Sandiford
Steve Kargl writes: > On Sat, Feb 01, 2025 at 09:49:17PM +0100, Harald Anlauf wrote: >> Am 01.02.25 um 21:03 schrieb Steve Kargl: >> > On Sat, Feb 01, 2025 at 07:25:51PM +0100, Harald Anlauf wrote: >> > > >> > > the attached patch downgrades different constant character lengths in an >> > > array

Re: [PATCH] Fortran: different character lengths in array constructor [PR93289]

2025-02-01 Thread Steve Kargl
On Sat, Feb 01, 2025 at 09:49:17PM +0100, Harald Anlauf wrote: > Am 01.02.25 um 21:03 schrieb Steve Kargl: > > On Sat, Feb 01, 2025 at 07:25:51PM +0100, Harald Anlauf wrote: > > > > > > the attached patch downgrades different constant character lengths in an > > > array constructor from a GNU to a

Re: [PATCH] Fortran: different character lengths in array constructor [PR93289]

2025-02-01 Thread Harald Anlauf
Am 01.02.25 um 21:49 schrieb Harald Anlauf: So why must we be so tough? Here's what I get from other compilers: Intel, Nvidia, AMD flang: silent by default. ifx -stand f18: char_array_constructor_5.f90(11): warning #8208: If type specification is omitted, each ac-value expression in the arr

Re: [PATCH] Fortran: different character lengths in array constructor [PR93289]

2025-02-01 Thread Harald Anlauf
Am 01.02.25 um 21:03 schrieb Steve Kargl: On Sat, Feb 01, 2025 at 07:25:51PM +0100, Harald Anlauf wrote: the attached patch downgrades different constant character lengths in an array constructor from a GNU to a legacy extension, so that users get a warning with -std=gnu. We continue to genera

Re: [PATCH] Fortran: different character lengths in array constructor [PR93289]

2025-02-01 Thread Steve Kargl
On Sat, Feb 01, 2025 at 07:25:51PM +0100, Harald Anlauf wrote: > > the attached patch downgrades different constant character lengths in an > array constructor from a GNU to a legacy extension, so that users get a > warning with -std=gnu. We continue to generate an error when standard > conforman

Re: [PATCH] Fortran: different character lengths in array constructor [PR93289]

2025-02-01 Thread Jerry D
On 2/1/25 10:25 AM, Harald Anlauf wrote: Dear all, the attached patch downgrades different constant character lengths in an array constructor from a GNU to a legacy extension, so that users get a warning with -std=gnu.  We continue to generate an error when standard conformance is requested. Re

[PATCH] Fortran: different character lengths in array constructor [PR93289]

2025-02-01 Thread Harald Anlauf
testcase where this triggered... :) OK for mainline? Thanks, Harald From c2ab5fc3e4cc758ca00e1878394c8f1466462f84 Mon Sep 17 00:00:00 2001 From: Harald Anlauf Date: Sat, 1 Feb 2025 19:14:21 +0100 Subject: [PATCH] Fortran: different character lengths in array constructor [PR93289] PR fortran