public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/115997] New: Findloc does not find the result of a function with a deferred-length character return value
@ 2024-07-19  5:25 mscfd at gmx dot net
  2024-07-19 16:30 ` [Bug fortran/115997] " anlauf at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mscfd at gmx dot net @ 2024-07-19  5:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115997

            Bug ID: 115997
           Summary: Findloc does not find the result of a function with a
                    deferred-length character return value
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mscfd at gmx dot net
  Target Milestone: ---

Created attachment 58705
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58705&action=edit
testcase

Invoking findloc with an array of character values and a search value obtained
by a function call (which returns a deferred-length character value) always
yields 0, even if the value is present in the array.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/115997] Findloc does not find the result of a function with a deferred-length character return value
  2024-07-19  5:25 [Bug fortran/115997] New: Findloc does not find the result of a function with a deferred-length character return value mscfd at gmx dot net
@ 2024-07-19 16:30 ` anlauf at gcc dot gnu.org
  2024-07-22  6:28 ` mscfd at gmx dot net
  2024-07-22  8:04 ` anlauf at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2024-07-19 16:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115997

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from anlauf at gcc dot gnu.org ---
Fixed in newer releases.  Please consider upgrading.

*** This bug has been marked as a duplicate of bug 110288 ***

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/115997] Findloc does not find the result of a function with a deferred-length character return value
  2024-07-19  5:25 [Bug fortran/115997] New: Findloc does not find the result of a function with a deferred-length character return value mscfd at gmx dot net
  2024-07-19 16:30 ` [Bug fortran/115997] " anlauf at gcc dot gnu.org
@ 2024-07-22  6:28 ` mscfd at gmx dot net
  2024-07-22  8:04 ` anlauf at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: mscfd at gmx dot net @ 2024-07-22  6:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115997

--- Comment #2 from martin <mscfd at gmx dot net> ---
Thanks for checking and looking up. I have not been able to use gfortran-14 due
to bug 114874 (a regression which has been resolved after release). Strangely,
the search box of bugzilla does not show relevant findloc issues, so I missed
bug 110288.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/115997] Findloc does not find the result of a function with a deferred-length character return value
  2024-07-19  5:25 [Bug fortran/115997] New: Findloc does not find the result of a function with a deferred-length character return value mscfd at gmx dot net
  2024-07-19 16:30 ` [Bug fortran/115997] " anlauf at gcc dot gnu.org
  2024-07-22  6:28 ` mscfd at gmx dot net
@ 2024-07-22  8:04 ` anlauf at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2024-07-22  8:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115997

--- Comment #3 from anlauf at gcc dot gnu.org ---
The original issue was reported for findloc, but did occur with several other
intrinsics accepting deferred-length character.  If you edit the bugzilla
search to include resolved issues, you will also see the mentioned one.

You have several options to go beyond 13.1:
- try upgrading to 13.3
- wait for the upcoming 14.2 release (expected soon)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-07-22  8:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-19  5:25 [Bug fortran/115997] New: Findloc does not find the result of a function with a deferred-length character return value mscfd at gmx dot net
2024-07-19 16:30 ` [Bug fortran/115997] " anlauf at gcc dot gnu.org
2024-07-22  6:28 ` mscfd at gmx dot net
2024-07-22  8:04 ` anlauf at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).