Bug 26303 - [4.2 Regression] internal compiler error: Bus error
Summary: [4.2 Regression] internal compiler error: Bus error
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: 4.2.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2006-02-15 13:55 UTC by Dale Ranta
Modified: 2006-02-15 14:18 UTC (History)
1 user (show)

See Also:
Host: powerpc-apple-darwin8.4.0
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dale Ranta 2006-02-15 13:55:09 UTC
gfortran crashes on the Macintosh with this program -

[dranta:~/tests/gfortran-D] dir% gfortran -c module_bulkio.f90
module_bulkio.f90:0: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[dranta:~/tests/gfortran-D] dir% cat module_bulkio.f90
    module bulkio_module
      implicit none
      private
      integer, save :: maxpe
    contains
      subroutine bulkio_read_same_i_1( )
        integer       :: max_data_length, min_data_length
        integer :: data_lengths(0:maxpe)
        min_data_length = minval( data_lengths( 0: maxpe ) )
      end subroutine bulkio_read_same_i_1
    end module bulkio_module
[dranta:~/tests/gfortran-D] dir% gfortran --v
Using built-in specs.
Target: powerpc-apple-darwin8.4.0
Configured with: ../gcc/configure --prefix=/Users/dir/gfortran --enable-languages=c,f95
Thread model: posix
gcc version 4.2.0 20060214 (experimental)
Comment 1 Dale Ranta 2006-02-15 14:13:33 UTC
maxval() and sum() also crash in a similar fashion.
Comment 2 Grigory Zagorodnev 2006-02-15 14:16:02 UTC
This is the same Fortran problem explained here http://gcc.gnu.org/ml/gcc/2006-02/msg00247.html

You may want to update the compiler, since fix has been applied http://gcc.gnu.org/ml/gcc-patches/2006-02/msg01216.html
Comment 3 Andrew Pinski 2006-02-15 14:18:52 UTC
Fixed.