public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/32957]  New: C/Fortran interoperability and -fdefault-integer-8
@ 2007-08-01 14:56 dominiq at lps dot ens dot fr
  2007-08-01 15:04 ` [Bug fortran/32957] " kargl at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: dominiq at lps dot ens dot fr @ 2007-08-01 14:56 UTC (permalink / raw)
  To: gcc-bugs

Many failures in the test suite with -fdefault-integer-8 come from tests mixing
C and Fortran. While definitively not an expert in this area, I find pretty
obvious that changing the default integer/real type on one side and not the
other is asking for troubles. Apparently gfortran, but not the test suite, is
finding some of them as in gfortran.dg/c_loc_tests_2.f03:

[karma] f90/bug% gfc -fdefault-integer-8
/opt/gcc/gcc-4.3-work/gcc/testsuite/gfortran.dg/c_loc_tests_2.f03
/opt/gcc/gcc-4.3-work/gcc/testsuite/gfortran.dg/c_loc_tests_2.f03:53.37:

    if(test_array_address(my_c_ptr_1, 100) .ne. 1) then
                                    1
Error: Type/rank mismatch in argument 'num_elements' at (1)
/opt/gcc/gcc-4.3-work/gcc/testsuite/gfortran.dg/c_loc_tests_2.f03:83.19:

  use c_loc_tests_2
                  1
Fatal Error: Can't open module file 'c_loc_tests_2.mod' for reading at (1): No
such file or directory

Using -fdefault-integer-8 with 'intrinsic :: iso_c_binding' should probably
trigger an error or at least a warning.


-- 
           Summary: C/Fortran interoperability and -fdefault-integer-8
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominiq at lps dot ens dot fr


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


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

end of thread, other threads:[~2011-12-27 11:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-01 14:56 [Bug fortran/32957] New: C/Fortran interoperability and -fdefault-integer-8 dominiq at lps dot ens dot fr
2007-08-01 15:04 ` [Bug fortran/32957] " kargl at gcc dot gnu dot org
2007-08-02 17:08 ` dominiq at lps dot ens dot fr
2007-10-05 12:44 ` fxcoudert at gcc dot gnu dot org
2009-12-06 10:52 ` dominiq at lps dot ens dot fr
     [not found] <bug-32957-4@http.gcc.gnu.org/bugzilla/>
2011-12-27 11:19 ` dominiq at lps dot ens.fr

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).