[Bug fortran/101871] Array of strings of different length passed as an argument produces invalid result.

2021-08-12 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101871 kargl at gcc dot gnu.org changed: What|Removed |Added Ever confirmed|0 |1 CC|

[Bug fortran/101871] Array of strings of different length passed as an argument produces invalid result.

2021-08-12 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101871 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org --

[Bug fortran/101871] Array of strings of different length passed as an argument produces invalid result.

2021-08-12 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101871 --- Comment #3 from kargl at gcc dot gnu.org --- (In reply to anlauf from comment #2) > PR85547 is likely related to this one. Yes, indeed. Looks like a duplicate. I checked that array.c(gfc_match_array_constructor) does the right things. So,

[Bug fortran/101871] Array of strings of different length passed as an argument produces invalid result.

2021-08-13 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101871 --- Comment #4 from kargl at gcc dot gnu.org --- With this testcase, program tao_program implicit none integer i character(80) abc(9) character(1) n n = 'H' abc = [character(80) :: & & 'a'//n, 'ab', 'abc', 'd', 'def', 'g

[Bug fortran/101871] Array of strings of different length passed as an argument produces invalid result.

2021-08-15 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101871 --- Comment #5 from anlauf at gcc dot gnu.org --- In array.c:gfc_match_array_constructor there's the following code: 1335 /* Walk the constructor, and if possible, do type conversion for 1336 numeric types. */ 1337

[Bug fortran/101871] Array of strings of different length passed as an argument produces invalid result.

2021-08-15 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101871 --- Comment #6 from Steve Kargl --- On Sun, Aug 15, 2021 at 07:21:42PM +, anlauf at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101871 > > --- Comment #5 from anlauf at gcc dot gnu.org --- > In array.c:gfc_match_ar