[Bug fortran/31919] New: ICE in fold_binary in fold-const.c

2007-05-14 Thread keinstein_junior at gmx dot net
On amd64 debian gfortran fails (both trunk and recent 4.2 from GFortran wiki):

module materials
   implicit none
   integer,parameter :: dr = kind(1.0d0)
   private
   type md_field
   real(dr),dimension(1:3,1:99) :: realspeed
   real(dr),dimension(1:99) :: mass,kinenergy
   end type md_field
contains


   function getTemperature(x,selector) result(temp)
  type(md_field),intent(in) :: x;
  integer,dimension(:),intent(in),optional :: selector;
  real(kind=dr) :: temp;

! realspeed has wrong dimensions
  print *,min(x % kinenergy,x % realspeed)

   end function getTemperature
end module materials


Output is:
$ gfortran-trunk matbug.F90
matbug.F90: In function #8216;gettemperature#8217;:
matbug.F90:12: internal compiler error: in fold_binary, at fold-const.c:8923
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

It's not valid I guess, but gfortran should not fail.


-- 
   Summary: ICE in fold_binary in fold-const.c
   Product: gcc
   Version: 4.1.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: keinstein_junior at gmx dot net


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



[Bug fortran/29523] ICE with some non up-to date .mod files

2007-04-23 Thread keinstein_junior at gmx dot net


--- Comment #6 from keinstein_junior at gmx dot net  2007-04-23 12:08 
---
I tried to add a new testcase which shows the error with my gfortran-4.2. But
got an error.

It's located at http://rcswww.urz.tu-dresden.de/~s7935097/src-differror2.tgz
now. 

FYI alloys.mod depends on the other two, is outdated and should be rebuild.
But ICE is not a real solution. I'd expect some error about inconsistent .mod
fieles (probably noting, which one should be rebuilt).

[EMAIL PROTECTED]:~/bugs/src-differror2$ ./start-gfc
diffussion.F90: In function #8216;MAIN__#8217;:
diffussion.F90:9: internal compiler error: in gfc_get_derived_type, at
fortran/trans-types.c:1452
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.
[EMAIL PROTECTED]:~/bugs/src-differror2$ vi start-gfc
[EMAIL PROTECTED]:~/bugs/src-differror2$ ./start-gfc
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /projects/tob/gcc-4_2-branch/configure
--enable-languages=c,fortran --prefix=/projects/tob/gcc-4.2
Thread model: posix
gcc version 4.2.0 20070215 (prerelease)
 /usr/local/gcc-4.2/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.0/cc1 -E
-lang-fortran -traditional-cpp -D_LANGUAGE_FORTRAN -quiet -v -I. -I../../src -I
../../includes -I potentials -I tools -I lattices -I Verfahren -I filter
-iprefix /usr/local/gcc-4.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.0/
-DPACKAGE_NAME=matprop -DPACKAGE_TARNAME=matprop -DPACKAGE_VERSION=0.1.0
-DPACKAGE_STRING=matprop 0.1.0 -DPACKAGE_BUGREPORT=[EMAIL PROTECTED]
-DPACKAGE=matprop -DVERSION=0.1.0 -DDEBUG diffussion.F90 -mtune=generic
-Wall -Wsurprising -fbounds-check -ftree-vectorize -fworking-directory -O3 -o
/tmp/ccDZMQzD.f95
ignoring nonexistent directory
/usr/local/gcc-4.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.0/../../../../x86_64-unknown-linux-gnu/include
ignoring nonexistent directory /projects/tob/gcc-4.2/include
ignoring nonexistent directory
/projects/tob/gcc-4.2/lib/gcc/x86_64-unknown-linux-gnu/4.2.0/include
ignoring nonexistent directory
/projects/tob/gcc-4.2/x86_64-unknown-linux-gnu/include
ignoring nonexistent directory ../../src
ignoring nonexistent directory ../../includes
ignoring nonexistent directory potentials
ignoring nonexistent directory tools
ignoring nonexistent directory lattices
ignoring nonexistent directory Verfahren
ignoring nonexistent directory filter
#include ... search starts here:
#include ... search starts here:
 .
 /usr/local/gcc-4.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.0/include
 /usr/local/include
 /usr/include
End of search list.
 /usr/local/gcc-4.2/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.0/f951
/tmp/ccDZMQzD.f95 -ffree-form -quiet -dumpbase diffussion.F90 -mtune=generic
-auxbase-strip diffussion.o -g -O3 -Wall -Wsurprising -version -p
-fbounds-check -ftree-vectorize -I. -I../../src -I ../../includes -I potentials
-I tools -I lattices -I Verfahren -I filter -fpreprocessed -I
/usr/local/gcc-4.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.0/finclude -o
/tmp/ccsyx4u7.s
GNU F95 version 4.2.0 20070215 (prerelease) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.2.0 20070215 (prerelease).
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128471
diffussion.F90: In function #8216;MAIN__#8217;:
diffussion.F90:9: internal compiler error: in gfc_get_derived_type, at
fortran/trans-types.c:1452
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.


-- 

keinstein_junior at gmx dot net changed:

   What|Removed |Added

 Status|RESOLVED|UNCONFIRMED
 Resolution|INVALID |


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



[Bug fortran/29523] ICE with some non up-to date .mod files

2006-10-25 Thread keinstein_junior at gmx dot net


--- Comment #3 from keinstein_junior at gmx dot net  2006-10-25 07:41 
---
Created an attachment (id=12488)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12488action=view)
one failing and one working set of .mod files

In the tar archive there are two subtrees:
src-ICE has all loaded .mod files from the .F90 file, which fails
src the same as above, but after rebuilding all .mod files


-- 


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



[Bug fortran/29523] ICE with some non up-to date .mod files

2006-10-23 Thread keinstein_junior at gmx dot net


--- Comment #2 from keinstein_junior at gmx dot net  2006-10-23 07:28 
---
(In reply to comment #1)
 Can you provide some details on the out of date .mod files?  Were they 
 compiled
 with a different compiler version or on a different architecture?  Or are they
 just not up-to-date with the source?  In the latter case you should adjust 
 your
 makefile to honour dependencies and rebuild the .mod files appropriately.

The latter case is true. But gfortran should give a useful error message.
Up to now it was much easier to do make clean than to track all the
dependencies across the different directories as gfortran doesn't offer
dependency tracking.


-- 


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



[Bug fortran/29523] New: ICE with some non up-to date .mod files

2006-10-20 Thread keinstein_junior at gmx dot net
Hi,

I got the following error message when I do just „make“ on my program.
Running „make clean  make“ solves the problem, but gcc should give some
useful error message:



gfortran -DPACKAGE_NAME=\matprop\ -DPACKAGE_TARNAME=\matprop\
-DPACKAGE_VERSION=\0.1.0\ -DPACKAGE_STRING=\matprop\ 0.1.0\
-DPACKAGE_BUGREPORT=\[EMAIL PROTECTED] -DPACKAGE=\matprop\
-DVERSION=\0.1.0\ -I. -I../../src-I ../../includes -I potentials -I tools
-I lattices -I Verfahren -I filter -O3 -funsafe-loop-optimizations
-Wunsafe-loop-optimizations -ftree-loop-linear -ftree-loop-im -ftree-vectorize
-funroll-loops -fprefetch-loop-arrays -fvariable-expansion-in-unroller
-freorder-blocks-and-partition -ffast-math -ffinite-math-only 
-fno-trapping-math -funswitch-loops -finline-limit=6000 -c -o diffussion.o
../../src/diffussion.F90
../../src/diffussion.F90: In Funktion »main_program«:
../../src/diffussion.F90:161: interner Compiler-Fehler: in
gfc_get_derived_type, bei fortran/trans-types.c:1450
Bitte senden Sie einen vollständigen Fehlerbericht auf Englisch ein;
bearbeiten Sie die Quellen zunächst mit einem Präprozessor, wenn es
dienlich ist.
Fehler in der deutschen Übersetzung sind an
[EMAIL PROTECTED] zu melden.

Gehen Sie gemäß den Hinweisen in URL:http://gcc.gnu.org/bugs.html vor.
For Debian GNU/Linux specific bug reporting instructions,
see URL:file:///usr/share/doc/gcc-4.1/README.Bugs.

--

Sorry, I don't know, how to reproduce it. But maybe it will be useful anyway.

Tobias


-- 
   Summary: ICE with some non up-to date .mod files
   Product: gcc
   Version: 4.1.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: keinstein_junior at gmx dot net
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


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



[Bug fortran/29060] New: spread causes ICE in gfc_trans_array_constructor

2006-09-13 Thread keinstein_junior at gmx dot net
Hi,

I got AN ICE trying to compile 

--
module bcc
   implicit none
   private
   type md_field
   real,dimension(:,:),pointer :: position
   end type md_field
   real,dimension(1:3,1:2),parameter :: unitcell 
 = reshape((/ 0.25,0.25,0.25, 0.75,0.75,0.75 /),(/3,2/))
contains

   subroutine createBccLattice(x,counts)
  integer,dimension(1:3),intent(in) :: counts
  type(md_field),pointer :: x
  integer :: i,j,k

  do i=1,counts(1)
  do j=1,counts(2)
  do k=1,counts(3)

  x % position(:,1:2)
= unitcell + spread((/ i,j,k/),2,size(unitcell,2))
  end do
  end do
  end do

  return
   end subroutine createBccLattice


end module bcc
--

maybe it is related to some other spread related errors, I encountered in an
older gfortran debian package, which seemed to occure only after several spread
calls. Unfortunately at that time it was too difficult to get a nice code
snippet for the report.

For your information:

[EMAIL PROTECTED]:~/bugs/gfortran$ LANG=C gfortran -v -c ICE5.f90
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,fortran,objc,obj-c++,ada,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre --enable-mpfr
--enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.1.2 20060613 (prerelease) (Debian 4.1.1-5)
 /usr/lib/gcc/x86_64-linux-gnu/4.1.2/f951 ICE5.f90 -quiet -dumpbase ICE5.f90
-mtune=k8 -auxbase ICE5 -version -o /tmp/ccsURLG7.s
GNU F95 version 4.1.2 20060613 (prerelease) (Debian 4.1.1-5) (x86_64-linux-gnu)
compiled by GNU C version 4.1.2 20060613 (prerelease) (Debian 4.1.1-5).
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128471
ICE5.f90: In function 'createbcclattice':
ICE5.f90:11: internal compiler error: in gfc_trans_array_constructor, at
fortran/trans-array.c:1317
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see URL:file:///usr/share/doc/gcc-4.1/README.Bugs.
[EMAIL PROTECTED]:~/bugs/gfortran$


-- 
   Summary: spread causes ICE in gfc_trans_array_constructor
   Product: gcc
   Version: 4.1.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: keinstein_junior at gmx dot net
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


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