public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/40976]  New: Merge DECL of procedure call with DECL of gfc_get_function_type
@ 2009-08-05 19:46 burnus at gcc dot gnu dot org
  2009-08-05 20:43 ` [Bug fortran/40976] " burnus at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-08-05 19:46 UTC (permalink / raw)
  To: gcc-bugs

Motivated by PR 40969.

Currently, we generate a function declaration for

  procedure(<empty or interface>) :: proc

and another one for
  call proc(something) ! or var = proc(something)

If no explicit interface is known, the function argument is undefined, which
causes problems with LTO, cf. PR 40949 and PR 40969.

In principle, one could update the formal argument list of the "proc" symbol
when encountering the procedure call. That should be already done in the front
end and will also provide a means of diagnosing call errors such as:

   call proc(4)
   call proc(4.0, 4) ! wrong type, different number of arguments

Additionally, one should then re-use the DECL.


-- 
           Summary: Merge DECL of procedure call with DECL of
                    gfc_get_function_type
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: wrong-code, diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40976


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <bug-40976-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2021-04-16 16:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-05 19:46 [Bug fortran/40976] New: Merge DECL of procedure call with DECL of gfc_get_function_type burnus at gcc dot gnu dot org
2009-08-05 20:43 ` [Bug fortran/40976] " burnus at gcc dot gnu dot org
2009-08-18 13:03 ` burnus at gcc dot gnu dot org
2009-08-18 14:50 ` burnus at gcc dot gnu dot org
2010-03-02 10:38 ` dominiq at lps dot ens dot fr
2010-06-11 21:26 ` burnus at gcc dot gnu dot org
     [not found] <bug-40976-4@http.gcc.gnu.org/bugzilla/>
2012-04-26 14:13 ` janus at gcc dot gnu.org
2020-06-14 15:24 ` tkoenig at gcc dot gnu.org
2021-04-16 16:22 ` tkoenig 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).