public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/114141] New: ASSOCIATE and complex part ref when associate target is a function
@ 2024-02-27 22:11 kargl at gcc dot gnu.org
  2024-02-28  2:11 ` [Bug fortran/114141] " jvdelisle at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: kargl at gcc dot gnu.org @ 2024-02-27 22:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114141
           Summary: ASSOCIATE and complex part ref when associate target
                    is a function
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kargl at gcc dot gnu.org
  Target Milestone: ---

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

gfortran rejects the following code with an invalid error message.
The problem is that the target is not resolved to have type 
COMPLEX. The attach patch rectifies the issue.  It has been regtested
on x86_64-*-freebsd.


! { dg-do run }
program foo
   implicit none
   real y
   associate (x => log(cmplx(-1,0)))
      y = x%im
      if (int(100*y)-314 /= 0) stop 1
   end associate
end program

gfortran13 -c a.f90
a.f90:6:13:

    6 |       y = x%im
      |             1
Error: Symbol 'x' at (1) has no IMPLICIT type
troutmask:sgk[244]

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

end of thread, other threads:[~2024-03-15  7:09 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-27 22:11 [Bug fortran/114141] New: ASSOCIATE and complex part ref when associate target is a function kargl at gcc dot gnu.org
2024-02-28  2:11 ` [Bug fortran/114141] " jvdelisle at gcc dot gnu.org
2024-02-28  2:21 ` jvdelisle at gcc dot gnu.org
2024-02-28 15:43 ` kargl at gcc dot gnu.org
2024-02-28 17:30 ` mikael at gcc dot gnu.org
2024-02-28 18:13 ` kargl at gcc dot gnu.org
2024-02-28 19:27 ` mikael at gcc dot gnu.org
2024-02-28 20:24 ` sgk at troutmask dot apl.washington.edu
2024-02-28 20:42 ` sgk at troutmask dot apl.washington.edu
2024-02-28 22:32 ` jvdelisle at gcc dot gnu.org
2024-02-29 18:33 ` pault at gcc dot gnu.org
2024-02-29 20:25 ` sgk at troutmask dot apl.washington.edu
2024-03-01  9:15 ` pault at gcc dot gnu.org
2024-03-01  9:16 ` pault at gcc dot gnu.org
2024-03-02 17:32 ` pault at gcc dot gnu.org
2024-03-15  6:53 ` cvs-commit at gcc dot gnu.org
2024-03-15  7:09 ` pault 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).