public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/32627] [ISO Bind C] Accept c_f_pointer for TYPE
  2007-07-04 19:59 [Bug fortran/32627] New: [ISO Bind C] Accept c_pointer_* for TYPE burnus at gcc dot gnu dot org
@ 2007-07-04 19:59 ` burnus at gcc dot gnu dot org
  2007-07-11  8:46 ` burnus at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-07-04 19:59 UTC (permalink / raw)
  To: gcc-bugs



-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[ISO Bind C] Accept         |[ISO Bind C] Accept
                   |c_pointer_* for TYPE        |c_f_pointer for TYPE
   Target Milestone|---                         |4.3.0


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


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

* [Bug fortran/32627]  New: [ISO Bind C] Accept c_pointer_* for TYPE
@ 2007-07-04 19:59 burnus at gcc dot gnu dot org
  2007-07-04 19:59 ` [Bug fortran/32627] [ISO Bind C] Accept c_f_pointer " burnus at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-07-04 19:59 UTC (permalink / raw)
  To: gcc-bugs

From:
http://de.wikibooks.org/w/index.php?title=Fortran:_Fortran_und_C:_Fortran_2003#Datenverbund

/tmp/ccW1yqyk.o: In function `MAIN__':
f.f90:(.text+0x3e): undefined reference to `__iso_c_binding_c_f_pointer_s1'


program main
  use iso_c_binding
  implicit none
  type, bind( c ) :: A
    integer( c_int ) :: xc, yc
    type( c_ptr )    :: str
  end type
  type( c_ptr )               :: x
  type( A ), pointer          :: fptr
  character( len=9 ), pointer :: strptr
  call c_f_pointer( fptr%str, strptr )
end program main


-- 
           Summary: [ISO Bind C] Accept c_pointer_* for TYPE
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          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=32627


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

* [Bug fortran/32627] [ISO Bind C] Accept c_f_pointer for TYPE
  2007-07-04 19:59 [Bug fortran/32627] New: [ISO Bind C] Accept c_pointer_* for TYPE burnus at gcc dot gnu dot org
  2007-07-04 19:59 ` [Bug fortran/32627] [ISO Bind C] Accept c_f_pointer " burnus at gcc dot gnu dot org
@ 2007-07-11  8:46 ` burnus at gcc dot gnu dot org
  2007-07-16 19:05 ` patchapp at dberlin dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-07-11  8:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2007-07-11 08:46 -------
Also
http://www.lrz-muenchen.de/services/software/mathematik/gsl/fortran/index.html
fails with the same error.
(One needs to change "g95)" into "g95|gfortran)" in configure.)


-- 


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


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

* [Bug fortran/32627] [ISO Bind C] Accept c_f_pointer for TYPE
  2007-07-04 19:59 [Bug fortran/32627] New: [ISO Bind C] Accept c_pointer_* for TYPE burnus at gcc dot gnu dot org
  2007-07-04 19:59 ` [Bug fortran/32627] [ISO Bind C] Accept c_f_pointer " burnus at gcc dot gnu dot org
  2007-07-11  8:46 ` burnus at gcc dot gnu dot org
@ 2007-07-16 19:05 ` patchapp at dberlin dot org
  2007-07-17 15:25 ` burnus at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: patchapp at dberlin dot org @ 2007-07-16 19:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from patchapp at dberlin dot org  2007-07-16 19:05 -------
Subject: Bug number pr32627

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-07/msg01459.html


-- 


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


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

* [Bug fortran/32627] [ISO Bind C] Accept c_f_pointer for TYPE
  2007-07-04 19:59 [Bug fortran/32627] New: [ISO Bind C] Accept c_pointer_* for TYPE burnus at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-07-16 19:05 ` patchapp at dberlin dot org
@ 2007-07-17 15:25 ` burnus at gcc dot gnu dot org
  2007-07-18 18:11 ` patchapp at dberlin dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-07-17 15:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from burnus at gcc dot gnu dot org  2007-07-17 15:25 -------
> Also
> http://www.lrz-muenchen.de/services/software/mathematik/gsl/fortran/index.html
> fails with the same error.
> (One needs to change "g95)" into "g95|gfortran)" in configure.)

This is related in so far that it is c_f_pointer, but it fails for a different
reason: SHAPE can be any integer kind, but gfortran only accepts the default
kind.


-- 


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


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

* [Bug fortran/32627] [ISO Bind C] Accept c_f_pointer for TYPE
  2007-07-04 19:59 [Bug fortran/32627] New: [ISO Bind C] Accept c_pointer_* for TYPE burnus at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-07-17 15:25 ` burnus at gcc dot gnu dot org
@ 2007-07-18 18:11 ` patchapp at dberlin dot org
  2007-07-21 23:46 ` kargl at gcc dot gnu dot org
  2007-07-21 23:48 ` kargl at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: patchapp at dberlin dot org @ 2007-07-18 18:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from patchapp at dberlin dot org  2007-07-18 18:10 -------
Subject: Bug number PR 32627

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-07/msg01541.html


-- 


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


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

* [Bug fortran/32627] [ISO Bind C] Accept c_f_pointer for TYPE
  2007-07-04 19:59 [Bug fortran/32627] New: [ISO Bind C] Accept c_pointer_* for TYPE burnus at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-07-18 18:11 ` patchapp at dberlin dot org
@ 2007-07-21 23:46 ` kargl at gcc dot gnu dot org
  2007-07-21 23:48 ` kargl at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-07-21 23:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from kargl at gcc dot gnu dot org  2007-07-21 23:45 -------
Subject: Bug 32627

Author: kargl
Date: Sat Jul 21 23:45:44 2007
New Revision: 126817

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126817
Log:
2007-07-21  Christopher D. Rickett  <crickett@lanl.gov>

        PR fortran/32627
        * resolve.c (set_name_and_label): Set kind number for character
        version of c_f_pointer.
        (gfc_iso_c_sub_interface): Set the kind of the SHAPE formal arg to
        that of the actual SHAPE arg.
        * symbol.c (gen_shape_param): Initialize kind for SHAPE arg.

2007-07-21  Christopher D. Rickett  <crickett@lanl.gov>

        PR fortran/32627
        * libgfortran/intrinsics/iso_c_generated_procs.c: Add c_f_pointer
        for character/string arguments.
        * libgfortran/intrinsic/iso_c_binding.c (c_f_pointer_u0): Allow
        the optional SHAPE arg to be any valid integer kind.
        * libgfortran/gfortran.map: Add c_f_pointer_s0.
        * libgfortran/mk-kinds-h.sh: Save smallest integer kind as default
        character kind.
        * libgfortran/intrinsics/iso_c_generated_procs.c: Add versions of
        c_f_pointer for complex and logical types.
        * libgfortran/gfortran.map: Add c_f_pointer versions for logical
        and complex types.

2007-07-21  Christopher D. Rickett  <crickett@lanl.gov>

        PR fortran/32627
        * gfortran.dg/pr32627_driver.c: Driver for pr32627.
        * gfortran.dg/pr32627.f03: New test case.
        * gfortran.dg/c_f_pointer_logical.f03: New test case.
        * gfortran.dg/c_f_pointer_logical_driver.c: Driver for
        c_f_pointer_logical.
        * gfortran.dg/c_f_pointer_complex_driver.c: Driver for
        c_f_pointer_complex.
        * gfortran.dg/c_f_pointer_complex.f03: New test case.
        * gfortran.dg/c_f_pointer_shape_tests_2_driver.c: Driver for
        c_f_pointer_shape_tests_2.
        * gfortran.dg/c_f_pointer_shape_tests_2.f03: New test case.


Added:
    trunk/gcc/testsuite/gfortran.dg/c_f_pointer_complex.f03
    trunk/gcc/testsuite/gfortran.dg/c_f_pointer_complex_driver.c
    trunk/gcc/testsuite/gfortran.dg/c_f_pointer_logical.f03
    trunk/gcc/testsuite/gfortran.dg/c_f_pointer_logical_driver.c
    trunk/gcc/testsuite/gfortran.dg/c_f_pointer_shape_tests_2.f03
    trunk/gcc/testsuite/gfortran.dg/c_f_pointer_shape_tests_2_driver.c
    trunk/gcc/testsuite/gfortran.dg/pr32627.f03
    trunk/gcc/testsuite/gfortran.dg/pr32627_driver.c
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/symbol.c
    trunk/gcc/testsuite/ChangeLog
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/gfortran.map
    trunk/libgfortran/intrinsics/iso_c_binding.c
    trunk/libgfortran/intrinsics/iso_c_generated_procs.c
    trunk/libgfortran/mk-kinds-h.sh


-- 


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


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

* [Bug fortran/32627] [ISO Bind C] Accept c_f_pointer for TYPE
  2007-07-04 19:59 [Bug fortran/32627] New: [ISO Bind C] Accept c_pointer_* for TYPE burnus at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-07-21 23:46 ` kargl at gcc dot gnu dot org
@ 2007-07-21 23:48 ` kargl at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-07-21 23:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from kargl at gcc dot gnu dot org  2007-07-21 23:48 -------
Fixed on trunk.


-- 

kargl at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-07-21 23:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-04 19:59 [Bug fortran/32627] New: [ISO Bind C] Accept c_pointer_* for TYPE burnus at gcc dot gnu dot org
2007-07-04 19:59 ` [Bug fortran/32627] [ISO Bind C] Accept c_f_pointer " burnus at gcc dot gnu dot org
2007-07-11  8:46 ` burnus at gcc dot gnu dot org
2007-07-16 19:05 ` patchapp at dberlin dot org
2007-07-17 15:25 ` burnus at gcc dot gnu dot org
2007-07-18 18:11 ` patchapp at dberlin dot org
2007-07-21 23:46 ` kargl at gcc dot gnu dot org
2007-07-21 23:48 ` kargl 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).