public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/40949]  New: FAIL: gfortran.dg/proc_ptr_7.f90
@ 2009-08-03 13:55 rguenth at gcc dot gnu dot org
  2009-08-03 23:17 ` [Bug fortran/40949] " burnus at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-03 13:55 UTC (permalink / raw)
  To: gcc-bugs

The fortran frontend does not properly terminate function type argument lists
with void_type_node.

 integer(c_int) function f55()
    f55 = 55
 end function f55

 integer(c_int) function f65()
    f65 = 65
 end function f65

do not match the argument in

void assignf_(int(**ptr)(void)) {
  *ptr = f;
}

prototype-wise, but instead would match

void assignf_(int(**ptr)()) {
  *ptr = f;
}

which has an unprototyped argument list.

I see the Fortran FE accepts excess parameters to functions and only warns
for that with -fwhole-file ...


-- 
           Summary: FAIL: gfortran.dg/proc_ptr_7.f90
           Product: gcc
           Version: lto
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-05-07  8:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-03 13:55 [Bug fortran/40949] New: FAIL: gfortran.dg/proc_ptr_7.f90 rguenth at gcc dot gnu dot org
2009-08-03 23:17 ` [Bug fortran/40949] " burnus at gcc dot gnu dot org
2009-08-04  8:14 ` rguenther at suse dot de
2009-08-04 17:36 ` burnus at gcc dot gnu dot org
2009-08-04 22:36 ` burnus at gcc dot gnu dot org
2009-08-05 20:47 ` burnus at gcc dot gnu dot org
2009-08-05 20:51 ` burnus at gcc dot gnu dot org
2009-08-12  1:42 ` bje at gcc dot gnu dot org
2010-05-06 21:20 ` dfranke at gcc dot gnu dot org
2010-05-07  8:43 ` rguenth at gcc dot gnu dot 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).