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
* [Bug fortran/40976] Merge DECL of procedure call with DECL of gfc_get_function_type 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 ` burnus at gcc dot gnu dot org 2009-08-18 13:03 ` burnus at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 9+ messages in thread From: burnus at gcc dot gnu dot org @ 2009-08-05 20:43 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from burnus at gcc dot gnu dot org 2009-08-05 20:43 ------- See also vaguely related PR 40978. -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |40949 nThis| | AssignedTo|unassigned at gcc dot gnu |burnus at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-08-05 20:43:11 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40976 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/40976] Merge DECL of procedure call with DECL of gfc_get_function_type 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 ` (2 subsequent siblings) 4 siblings, 0 replies; 9+ messages in thread From: burnus at gcc dot gnu dot org @ 2009-08-18 13:03 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from burnus at gcc dot gnu dot org 2009-08-18 13:03 ------- Another complication is due to: a) Procedure pointer b) Procedure pointer components (Type-bound procedures are no problem as they have always an explicit interface.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40976 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/40976] Merge DECL of procedure call with DECL of gfc_get_function_type 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 4 siblings, 0 replies; 9+ messages in thread From: burnus at gcc dot gnu dot org @ 2009-08-18 14:50 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from burnus at gcc dot gnu dot org 2009-08-18 14:49 ------- For PPC, see also PR 41107 and the link therein. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40976 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/40976] Merge DECL of procedure call with DECL of gfc_get_function_type 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 ` (2 preceding siblings ...) 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 4 siblings, 0 replies; 9+ messages in thread From: dominiq at lps dot ens dot fr @ 2010-03-02 10:38 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from dominiq at lps dot ens dot fr 2010-03-02 10:37 ------- Could pr41056 be related to this one? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40976 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/40976] Merge DECL of procedure call with DECL of gfc_get_function_type 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 ` (3 preceding siblings ...) 2010-03-02 10:38 ` dominiq at lps dot ens dot fr @ 2010-06-11 21:26 ` burnus at gcc dot gnu dot org 4 siblings, 0 replies; 9+ messages in thread From: burnus at gcc dot gnu dot org @ 2010-06-11 21:26 UTC (permalink / raw) To: gcc-bugs -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|burnus at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED |NEW 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/>]
* [Bug fortran/40976] Merge DECL of procedure call with DECL of gfc_get_function_type [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 2 siblings, 0 replies; 9+ messages in thread From: janus at gcc dot gnu.org @ 2012-04-26 14:13 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40976 --- Comment #5 from janus at gcc dot gnu.org 2012-04-26 14:09:28 UTC --- I think PR42122 is possibly related ... ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/40976] Merge DECL of procedure call with DECL of gfc_get_function_type [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 2 siblings, 0 replies; 9+ messages in thread From: tkoenig at gcc dot gnu.org @ 2020-06-14 15:24 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40976 Bug 40976 depends on bug 33097, which changed state. Bug 33097 Summary: Function decl trees without proper argument list https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33097 What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |FIXED ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/40976] Merge DECL of procedure call with DECL of gfc_get_function_type [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 2 siblings, 0 replies; 9+ messages in thread From: tkoenig at gcc dot gnu.org @ 2021-04-16 16:22 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40976 Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|tkoenig at gcc dot gnu.org |unassigned at gcc dot gnu.org Status|ASSIGNED |NEW ^ permalink raw reply [flat|nested] 9+ messages in thread
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).