[Bug fortran/54096] Type bound procedures

2012-07-26 Thread badass at vt dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54096

--- Comment #5 from badass at vt dot edu 2012-07-26 14:10:30 UTC ---
Created attachment 27878
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27878
source code

all files are modules except for prg_fwb.f90.
we believe the error segmentation fault has something to do with lines 166-167
of mod_io.f90


[Bug fortran/54096] Type bound procedures

2012-07-26 Thread badass at vt dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54096

--- Comment #6 from badass at vt dot edu 2012-07-26 14:13:52 UTC ---
Trying again. Source code attached.


[Bug fortran/54096] Type bound procedures

2012-07-26 Thread badass at vt dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54096

--- Comment #8 from badass at vt dot edu 2012-07-26 15:24:29 UTC ---
Thanks, will try with newer version of gcc on my end.


[Bug fortran/54096] New: Type bound procedures

2012-07-25 Thread badass at vt dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54096

 Bug #: 54096
   Summary: Type bound procedures
Classification: Unclassified
   Product: gcc
   Version: 4.5.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: bad...@vt.edu


running the following:

gfortran -c mod_constants.f90 -Wall -Wextra
gfortran -c mod_files.f90 -Wall -Wextra
gfortran -c class_ships.f90 -Wall -Wextra
gfortran -c mod_io.f90 -Wall -Wextra
gfortran prg_fwb.f90 *.o -Wall -Wextra -fno-strict-aliasing -fwrapv

yeilds:

mod_files.f90:340.85:

broutine setUnitNumber( unitNumber,  numberOfFiles, fileOffset, unit, fType )
   1
Warning: Unused dummy argument 'ftype' at (1)
f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
prg_fwb.f90:13.74:

  , getShipData ! ! procedure
  1
Fatal Error: Can't open module file 'mod_io.mod' for reading at (1): No such   
 file or directory



we believe the segmentation fault is caused by lines 166 or 167 of mod_io
because an internal compiler error is generated, I don't think it's generating
the .i files requested on the bug report instructions.


$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.5.3/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with:
/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3/configure
--srcdir=/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var
--sysconfdir=/etc --datarootdir=/usr/share --docdir=/usr/share/doc/gcc4 -C
--datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man -v
--with-gmp=/usr --with-mpfr=/usr --enable-bootstrap
--enable-version-specific-runtime-libs --libexecdir=/usr/lib --enable-static
--enable-shared --enable-shared-libgcc --disable-__cxa_atexit --with-gnu-ld
--with-gnu-as --with-dwarf2 --disable-sjlj-exceptions
--enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite
--enable-lto --enable-java-awt=gtk --disable-symvers --enable-libjava
--program-suffix=-4 --enable-libgomp --enable-libssp --enable-libada
--enable-threads=posix --with-arch=i686 --with-tune=generic
--enable-libgcj-sublibs CC=gcc-4 CXX=g++-4 CC_FOR_TARGET=gcc-4
CXX_FOR_TARGET=g++-4 GNATMAKE_FOR_TARGET=gnatmake GNATBIND_FOR_TARGET=gnatbind
--with-ecj-jar=/usr/share/java/ecj.jar
Thread model: posix
gcc version 4.5.3 (GCC)


[Bug fortran/54096] Type bound procedures

2012-07-25 Thread badass at vt dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54096

--- Comment #3 from badass at vt dot edu 2012-07-25 23:42:16 UTC ---
Sorry about that, I though i had included the source code. I'm working
on getting an updated compiler, but IT here is being difficult and I could
take a day. Thanks for the help, source code is attached.

-Benjamin A. Dassert




On Wed, Jul 25, 2012 at 4:19 PM, burnus at gcc dot gnu.org 
gcc-bugzi...@gcc.gnu.org wrote:

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

 Tobias Burnus burnus at gcc dot gnu.org changed:

What|Removed |Added

 
  Status|UNCONFIRMED |WAITING
Last reconfirmed||2012-07-25
  CC||burnus at gcc dot gnu.org
  Ever Confirmed|0   |1

 --- Comment #2 from Tobias Burnus burnus at gcc dot gnu.org 2012-07-25
 20:19:55 UTC ---
 (In reply to comment #1)
  Please try a newer version of gfortran as 4.5.3 is fairly old.

 Especially for type-bound procedures and related features. For those, you
 should use the current release 4.7.1 or the developer version 4.8

 You find links to unofficial gfortran builds at:
   http://gcc.gnu.org/wiki/GFortranBinaries

 (Cygwin.org does not seem to have a newer build; you might want to try the
 MinGW/MinGW-w64 version.)


 And as Steve wrote: It is nearly impossible to debug and fix compiler bugs
 without a full example.

 --
 Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
 --- You are receiving this mail because: ---
 You reported the bug.