[Bug fortran/98426] find_symbol in module.c traverses O(N) part of a search tree

2024-04-26 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98426 --- Comment #15 from Jerry DeLisle --- (In reply to Matt Thompson from comment #14) > Never mind. I'll send attachment to Jerry offline. It's too big for here. Got it. It works quite well for our purposes.

[Bug fortran/98426] find_symbol in module.c traverses O(N) part of a search tree

2024-04-25 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98426 --- Comment #11 from Jerry DeLisle --- I am able to run your reproducer and I can see the increasing times as the number of modules goes up. I am curious if you could randomize the subroutine names? These appear fairly repetitive and I wonder

[Bug fortran/98426] find_symbol in module.c traverses O(N) part of a search tree

2024-04-25 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98426 Jerry DeLisle changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jvdelisle at gcc dot gnu.org

[Bug fortran/114827] Valgrind reports errors with class(*) assignment

2024-04-23 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114827 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

[Bug fortran/98426] find_symbol in module.c traverses O(N) part of a search tree

2024-04-23 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98426 --- Comment #8 from Jerry DeLisle --- Martin or Matt, Can you test the following variation to see if you get better results. return st; } retval = NULL; if (c <= 0) retval = find_symbol (st->left, name, module, generic);

[Bug fortran/98426] find_symbol in module.c traverses O(N) part of a search tree

2024-04-23 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98426 Jerry DeLisle changed: What|Removed |Added Last reconfirmed||2024-04-24

[Bug fortran/98426] find_symbol in module.c traverses O(N) part of a search tree

2024-04-23 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98426 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

[Bug libfortran/114304] [13/14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-04-21 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 Jerry DeLisle changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2024-04-21 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 Jerry DeLisle changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libfortran/114618] Format produces incorrect output when contains 1x, ok when uses " "

2024-04-16 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114618 --- Comment #6 from Jerry DeLisle --- Created attachment 57965 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57965=edit Preliminary patch to fix several issues. The attached patch is very preliminary and appears to fix the X format

[Bug libfortran/114618] Format produces incorrect output when contains 1x, ok when uses " "

2024-04-14 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114618 Jerry DeLisle changed: What|Removed |Added Status|REOPENED|NEW Depends on|

[Bug libfortran/114618] Format produces incorrect output when contains 1x, ok when uses " "

2024-04-14 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114618 Jerry DeLisle changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jvdelisle at gcc dot gnu.org

[Bug libfortran/114618] Format produces incorrect output when contains 1x, ok when uses " "

2024-04-13 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114618 Jerry DeLisle changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|DUPLICATE

[Bug libfortran/107031] endfile truncates file at wrong position

2024-04-09 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107031 Jerry DeLisle changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug fortran/56744] [meta-bug] Namelist bugs

2024-04-09 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56744 Bug 56744 depends on bug 107068, which changed state. Bug 107068 Summary: Run-time error when reading logical arrays with a namelist https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107068 What|Removed |Added

[Bug libfortran/107068] Run-time error when reading logical arrays with a namelist

2024-04-09 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107068 Jerry DeLisle changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libfortran/114304] [13/14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-04-08 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 --- Comment #33 from Jerry DeLisle --- (In reply to Tobias Burnus from comment #30) > (In reply to rguent...@suse.de from comment #29) > > Might be for \r\n line endings? > > New lines are handled slightly differently – and \f and \v don't

[Bug libfortran/114304] [13/14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-04-08 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 --- Comment #32 from Jerry DeLisle --- (In reply to Tobias Burnus from comment #28) > Created attachment 57896 [details] > Testcase > --- snip --- > I think we need at least an "|| c == '\t'"; I guess '\r' isn't really > required here, or is

[Bug libfortran/113897] Consecutive tab and/or nX edits in format are not processed correctly.

2024-04-07 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113897 Jerry DeLisle changed: What|Removed |Added CC||urbanjost at comcast dot net ---

[Bug libfortran/114618] Format produces incorrect output when contains 1x, ok when uses " "

2024-04-07 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114618 Jerry DeLisle changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug fortran/114611] H edit descriptor should flag as error with -std-f95 (or higher)

2024-04-07 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
|NEW CC||jvdelisle at gcc dot gnu.org Last reconfirmed||2024-04-07 --- Comment #1 from Jerry DeLisle --- Here is a fix. It wiggles on about 5 test cases that will need to be adjusted. diff --git a/gcc/fortran

[Bug libfortran/114618] Format produces incorrect output when contains 1x, ok when uses " "

2024-04-06 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114618 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2024-04-02 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #37 from Jerry DeLisle --- Created attachment 57855 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57855=edit Preliminary patch to address some incorrect behavior This attached patch, gives some better results for the

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2024-04-02 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #36 from Jerry DeLisle --- Created attachment 57854 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57854=edit Modified extended test case I modified the extended test case so I could review this and summarize. Currently this

[Bug fortran/103368] [11/12/13 Regression] ICE in gimplify_expr, at gimplify.c:15668 since r12-4464-g017665f63047ce47

2024-04-02 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103368 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

[Bug testsuite/28032] gfortran.dg tests use dg-options with -On even though it is already torture tests

2024-04-02 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28032 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

[Bug libquadmath/114533] libquadmath: printf: fix misaligned access on args

2024-04-02 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114533 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

[Bug libfortran/107031] endfile truncates file at wrong position

2024-03-25 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107031 --- Comment #9 from Jerry DeLisle --- The following trivial patch changes gfortran behavior and regression tests Ok on x86_64. I will see if I can come up with a test case to catch this. diff --git a/libgfortran/io/file_pos.c

[Bug libfortran/107031] endfile truncates file at wrong position

2024-03-25 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |jvdelisle at gcc dot gnu.org CC||jvdelisle at gcc dot gnu.org --- Comment #8 from Jerry DeLisle --- Thankyou for information, I will take a look.

[Bug libfortran/106295] INQUIRE statement bus error at runtime

2024-03-19 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106295 --- Comment #7 from Jerry DeLisle --- I don't think that is a bad idea. I realize that this comes up often enough to consider some solution.

[Bug fortran/80012] FIXME in diagnostic "%s procedure at %L is already declared as %s procedure" from symbol.c

2024-03-18 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80012 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

[Bug fortran/103715] [11/12/13/14 Regression] ICE in gfc_find_gsymbol, at fortran/symbol.c:4301 since r9-3803-ga5fbc2f36a291cbe

2024-03-18 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103715 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

[Bug libfortran/114304] [13/14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-03-15 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 --- Comment #21 from Jerry DeLisle --- The following may be a helpful read. https://www.ibm.com/docs/en/openxl-fortran-aix/17.1.2?topic=formatting-value-separators I am auditing our list_read.c code for the various types. The NULL read plays

[Bug libfortran/114304] [13/14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-03-14 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 --- Comment #20 from Jerry DeLisle --- Some additional information from the 2023 standard. 13.10.3.1List-directed input forms 8 If the next effective item is default, ASCII, or ISO 10646 character and • the character sequence does not

[Bug libfortran/114304] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-03-13 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 --- Comment #17 from Jerry DeLisle --- (In reply to Jeffrey A. Law from comment #16) > Per c#12, c#13, c#14 & c#15, dropping the regression marker, but leaving > open. Interestingly, the remaining part of this bug is also a regression, it just

[Bug fortran/114023] complex part%ref of complex named constant array cannot be used in an initialization expression.

2024-03-13 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114023 Jerry DeLisle changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug libfortran/114304] [13/14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-03-12 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 --- Comment #15 from Jerry DeLisle --- (In reply to Tobias Burnus from comment #14) --- snip --- > The question is whether the following show give an error as shown above: > real :: x(3) > character(len=1) :: s > ... > write(99, '(a)')

[Bug libfortran/105456] Child I/O does not propage iostat

2024-03-11 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105456 Jerry DeLisle changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug fortran/20585] [meta-bug] Fortran 2003 support

2024-03-11 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20585 Bug 20585 depends on bug 105456, which changed state. Bug 105456 Summary: Child I/O does not propage iostat https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105456 What|Removed |Added

[Bug libfortran/105361] Incorrect end-of-file condition for derived-type I/O

2024-03-11 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105361 Bug 105361 depends on bug 105456, which changed state. Bug 105456 Summary: Child I/O does not propage iostat https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105456 What|Removed |Added

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2024-03-11 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #33 from Jerry DeLisle --- (In reply to Tobias Burnus from comment #32) > See PR114304 for an issue that was caused by the fix in comment 27. Reverted portion of offending commit to fix.

[Bug libfortran/114304] [13/14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-03-11 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 --- Comment #11 from Jerry DeLisle --- Created attachment 57676 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57676=edit Proposed patch This patch fixes the issue by reverting the troublesome hunk and regression tests OK on x86_64. The

[Bug libfortran/114304] [13/14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-03-11 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 --- Comment #9 from Jerry DeLisle --- Patch on comment #8 breaks all sorts of things. Not so obvious. I will try reverting the original hunk from pr105473 and then work from there.

[Bug libfortran/114304] [13/14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-03-11 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 Jerry DeLisle changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jvdelisle at gcc dot gnu.org

[Bug libfortran/114304] [13/14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-03-11 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 Jerry DeLisle changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libfortran/93727] Fortran 2018: EX edit descriptor

2024-03-10 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93727 --- Comment #7 from Jerry DeLisle --- (In reply to Thomas Henlich from comment #6) --- snip --- > Just some thoughts: > > Have you tried "%LA" for long double? > > Have you tried quadmath_snprintf >

[Bug libfortran/93727] Fortran 2018: EX edit descriptor

2024-03-09 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93727 --- Comment #5 from Jerry DeLisle --- I have been studying this a bit by looking at the 2023 std and functionality of printf(). Specifically printf() provides the 'A' descriptor which can be used for float (kind=4) and double (kind=8). It will

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2024-03-09 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #31 from Jerry DeLisle --- (In reply to john.harper from comment #30) > Thank you! > I encourage folks to move to gcc/gfortran 13. However, if you need it on 12, I can do so.

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2024-03-07 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #29 from Jerry DeLisle --- Backported to 13 and closing.

[Bug fortran/110644] Error in gfc_format_decoder

2024-03-05 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110644 --- Comment #13 from Jerry DeLisle --- Any luck getting a reduced case?

[Bug fortran/108680] Wrong DTIO arguments with -fdefault-integer-8

2024-03-05 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
||2024-03-06 Assignee|unassigned at gcc dot gnu.org |jvdelisle at gcc dot gnu.org Ever confirmed|0 |1 CC||jvdelisle at gcc dot gnu.org --- Comment #2 from Jerry DeLisle --- Taking a quick look

[Bug fortran/109105] Error-prone format string building in resolve.cc

2024-03-05 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |jvdelisle at gcc dot gnu.org --- Comment #4 from Jerry DeLisle --- So I don't lose it.

[Bug libfortran/105361] Incorrect end-of-file condition for derived-type I/O

2024-03-05 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105361 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

[Bug libfortran/106295] INQUIRE statement bus error at runtime

2024-03-05 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
||jvdelisle at gcc dot gnu.org Status|UNCONFIRMED |RESOLVED --- Comment #5 from Jerry DeLisle --- I think this should be closed. Dont mix libraries.

[Bug libfortran/93727] Fortran 2018: EX edit descriptor

2024-03-05 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93727 Jerry DeLisle changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jvdelisle at gcc dot gnu.org

[Bug libfortran/93550] Implement control of leading zero in formatted numeric output

2024-03-04 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93550 --- Comment #4 from Jerry DeLisle --- The LEADING_ZERO specifiers are now included in the 2023 standard, so away we go! In support of lazy programmers lets make the compiler do it. ;)

[Bug fortran/114141] ASSOCIATE and complex part ref when associate target is a function

2024-02-28 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114141 --- Comment #9 from Jerry DeLisle --- --- snip --- > % gfcx -o z a.f90 > a.f90:5:6: > > 5 | x%im = 42 > | 1 > Error: 'x' at (1) associated to expression cannot be used in > a variable definition context (assignment) > >

[Bug fortran/114141] ASSOCIATE and complex part ref when associate target is a function

2024-02-27 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114141 --- Comment #2 from Jerry DeLisle --- It looks like the 'selector' in this case is an expr. The expr must be a pointer object or a 'designator' A designator must be: R901 designator object-name array-element array-section

[Bug fortran/114141] ASSOCIATE and complex part ref when associate target is a function

2024-02-27 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114141 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

[Bug fortran/66499] Letters with accents change format behavior for X and T descriptors.

2024-02-24 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66499 --- Comment #7 from Jerry DeLisle --- There two issues going on here. We do not interpret source code that is UTF-8 encoded. This is why in our current tests for UTF-8 encoding of data files we us hexidecimal codes. I will have to see what the

[Bug fortran/66499] Letters with accents change format behavior for X and T descriptors.

2024-02-23 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66499 --- Comment #6 from Jerry DeLisle --- This is an interesting puzzle. I took the -fdump-tree-original output of compiling the test case and edited out all except the initialization of the two variables char1 and char2. I lined these up so we

[Bug libfortran/105456] Child I/O does not propage iostat

2024-02-22 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105456 --- Comment #4 from Jerry DeLisle --- Created attachment 57504 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57504=edit Proposed partial patch Proposed patch for the original test case with a READ function.

[Bug fortran/109358] Wrong formatting with T-descriptor during stream output

2024-02-18 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109358 --- Comment #16 from Jerry DeLisle --- I think I was not being very clear when I opened pr113897. nX descriptors are very similar to TR code and I meeantt to take care of those in the 113897. The reason for the separate PR is that the problem

[Bug libfortran/83282] missing comma in format changes output

2024-02-17 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83282 --- Comment #6 from Jerry DeLisle --- $ gfc -Wall -Werror -pedantic pr83282.f90 pr83282.f90:1:4: 1 |write(*,'(aa)') "ab", "bc" |1 Error: Unclassifiable statement at (1) This is not very useful either. :o

[Bug libfortran/83282] missing comma in format changes output

2024-02-17 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83282 --- Comment #5 from Jerry DeLisle --- With -std=f95 we get: $ gfc -std=f95 pr83282.f90 pr83282.f90:1:13: 1 |write(*,'(aa)') "ab", "bc" | 1 Error: GNU Extension: Missing comma at (1) pr83282.f90:2:17: 2 |

[Bug libfortran/107068] Run-time error when reading logical arrays with a namelist

2024-02-16 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107068 --- Comment #8 from Jerry DeLisle --- After a bit of sleuthing it turns out that the '(' in the name was being ignored and the comma in '(1,2)' was being treated as a delimiter. Since the following '=' was not seen yet, the 2 was seen as a

[Bug fortran/105847] namelist-object-name can be a renamed host associated entity

2024-02-15 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105847 --- Comment #11 from Jerry DeLisle --- Having done all this, I found: C8102 (R868) The namelist-group-name shall not be a name accessed by use association. What does this mean in the context of renamed?

[Bug fortran/105847] namelist-object-name can be a renamed host associated entity

2024-02-14 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105847 --- Comment #9 from Jerry DeLisle --- This seems to work: /* Build the namelist object name. */ - - string = gfc_build_cstring_const (var_name); + if (sym && !sym->attr.use_only && sym->attr.use_rename) +string =

[Bug fortran/105847] namelist-object-name can be a renamed host associated entity

2024-02-14 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105847 --- Comment #8 from Jerry DeLisle --- There is an assert just above the patch that implies that sym can be NULL if c is not. With gdb I checked, and sure enough thats the failure point. I am testing with sym included in the condition.

[Bug fortran/105847] namelist-object-name can be a renamed host associated entity

2024-02-14 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105847 --- Comment #7 from Jerry DeLisle --- Steve, I am getting a boatload of regressions on this. I wonder if something in the sym structure needs to be guarded here. They appear to be segfaults. Can you take a look?

[Bug fortran/105847] namelist-object-name can be a renamed host associated entity

2024-02-14 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105847 --- Comment #6 from Jerry DeLisle --- I obviously did not get to this last May. Will try now.

[Bug libfortran/99210] X editing for reading file with encoding='utf-8'

2024-02-14 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99210 Jerry DeLisle changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug fortran/109358] Wrong formatting with T-descriptor during stream output

2024-02-14 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109358 Jerry DeLisle changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libfortran/99210] X editing for reading file with encoding='utf-8'

2024-02-13 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99210 --- Comment #7 from Jerry DeLisle --- Submitted for approval.

[Bug libfortran/99210] X editing for reading file with encoding='utf-8'

2024-02-13 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99210 --- Comment #6 from Jerry DeLisle --- I have reapplied the patch in comment #3 and it regression tests fine and appears to fix the issue. I have need to work up the test case and submit this for approval.

[Bug libfortran/99210] X editing for reading file with encoding='utf-8'

2024-02-12 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99210 Jerry DeLisle changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jvdelisle at gcc dot gnu.org

[Bug libfortran/113897] Consecutive tab edits in format are not processed correctly.

2024-02-12 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
||2024-02-13 Assignee|unassigned at gcc dot gnu.org |jvdelisle at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Jerry DeLisle --- Adding to my list, but I do not see any priority needed for it.

[Bug libfortran/113897] New: Consecutive tab edits in format are not processed correctly.

2024-02-12 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: jvdelisle at gcc dot gnu.org Target Milestone: --- This issue found while working on pr109358. program tabs implicit none integer :: fd open(newunit=fd, file="tes

[Bug libfortran/111022] ES0.0E0 format gave ES0.dE0 output with d too high.

2024-02-12 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111022 Jerry DeLisle changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug fortran/85836] [meta-bug] Fortran 2018 support

2024-02-12 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85836 Bug 85836 depends on bug 111022, which changed state. Bug 111022 Summary: ES0.0E0 format gave ES0.dE0 output with d too high. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111022 What|Removed |Added

[Bug libfortran/111022] ES0.0E0 format gave ES0.dE0 output with d too high.

2024-02-12 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111022 --- Comment #36 from Jerry DeLisle --- I was looking for my damnit doll until I got to your last post. Is this one worthy of backport?

[Bug fortran/109358] Wrong formatting with T-descriptor during stream output

2024-02-12 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109358 --- Comment #11 from Jerry DeLisle --- I am going to submit the attached patch to close this PR and open a new PR for the lingering multiple tab edits in a row. The problem there is we have a special case if we have different T, TL, and TR

[Bug fortran/113883] allocatable length parameter used but is undefined

2024-02-12 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113883 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

[Bug fortran/109358] Wrong formatting with T-descriptor during stream output

2024-02-08 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109358 --- Comment #10 from Jerry DeLisle --- To clarify. The following is the remaining issue that is not related to stream I/O: > program tabs > implicit none > integer :: fd > open(newunit=fd, file="test.txt", form="formatted") > write(fd,

[Bug fortran/109358] Wrong formatting with T-descriptor during stream output

2024-02-08 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109358 --- Comment #9 from Jerry DeLisle --- Created attachment 57365 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57365=edit Preliminary patch The attached patch fixes the stream I/O related tabbing. This regression tests fine. There is

[Bug fortran/109358] Wrong formatting with T-descriptor during stream output

2024-02-03 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109358 Jerry DeLisle changed: What|Removed |Added CC||nmm1 at cam dot ac.uk --- Comment #8

[Bug libfortran/53962] Tab handling with formatted stream output

2024-02-03 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53962 Jerry DeLisle changed: What|Removed |Added Resolution|--- |DUPLICATE Status|ASSIGNED

[Bug libfortran/111022] ES0.0E0 format gave ES0.dE0 output with d too high.

2024-01-30 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111022 --- Comment #28 from Jerry DeLisle --- Created attachment 57260 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57260=edit A final patch This patch provides the necessary changes with only minor adjustment to existing gfortran test cases.

[Bug fortran/104908] [11/12/13/14 Regression] incorrect Fortran out-of-bound runtime error.

2024-01-26 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104908 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

[Bug libfortran/111022] ES0.0E0 format gave ES0.dE0 output with d too high.

2024-01-26 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111022 --- Comment #27 from Jerry DeLisle --- (In reply to anlauf from comment #26) > (In reply to Jerry DeLisle from comment #24) > > Currently gfortran does the following: > > > > character(20) :: fmt > > character(9) :: buffer > > fmt =

[Bug libfortran/111022] ES0.0E0 format gave ES0.dE0 output with d too high.

2024-01-25 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111022 --- Comment #24 from Jerry DeLisle --- Currently gfortran does the following: character(20) :: fmt character(9) :: buffer fmt = "(1a1,d0.2,1a1)" write(buffer,fmt) ">", 3.0, "<" print *, buffer fmt = "(1a1,e0.2,1a1)" write(buffer,fmt) ">",

[Bug fortran/82943] [F03] Error with type-bound procedure of parametrized derived type

2024-01-20 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82943 --- Comment #16 from Jerry DeLisle --- (In reply to Alexander Westbrooks from comment #15) > Created attachment 57176 [details] > Proposed Patch to fix PR82943, PR86148, PR86268 I am attempting to roll with this. Steve, do you know where the

[Bug libfortran/113223] NAMELIST internal write missing leading blank character

2024-01-13 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113223 Jerry DeLisle changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug libfortran/113313] execute_command_line hangs at run time

2024-01-12 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113313 --- Comment #8 from Jerry DeLisle --- (In reply to Steve Kargl from comment #7) --- snip --- > libgfortran is supposedly thread-safe and looking into > flush_all_units() shows some unlocking and testing for > locks. With 'print *,

[Bug libfortran/113313] execute_command_line hangs at run time

2024-01-11 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113313 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

[Bug libfortran/113223] NAMELIST internal write missing leading blank character

2024-01-04 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113223 --- Comment #3 from Jerry DeLisle --- Created attachment 56990 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56990=edit Suggested patch including affected test cases Regression tested OK. Three test cases affected. $ git status On

[Bug libfortran/113223] NAMELIST internal write missing leading blank character

2024-01-03 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113223 --- Comment #2 from Jerry DeLisle --- (In reply to kargl from comment #1) > Jerry can you take a look at this issue. Will do. Minor tweak I hope.

[Bug fortran/81615] save-temps and gfortran produces *.f90 files instead of *.i or *i90 files

2023-12-19 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81615 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

[Bug fortran/112873] F2023 degree trig functions

2023-12-15 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112873 Jerry DeLisle changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug ipa/112783] core dump on libxo when function is inlined

2023-12-15 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112783 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

  1   2   3   4   5   6   7   8   9   10   >