public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20151] New: internal compiler error: Bus error
@ 2005-02-23  1:30 dir at lanl dot gov
  2005-02-23  1:53 ` [Bug fortran/20151] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dir at lanl dot gov @ 2005-02-23  1:30 UTC (permalink / raw)
  To: gcc-bugs

I have no clue as to what the problem is here, but if I change almost anything
it goes away.

[dranta:~/tests/gfortran] dir% gfortran -c module_plot_hdf.f90
module_plot_hdf.f90: In function 'hdfsds_r8':
module_plot_hdf.f90:15: 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] dir% cat module_plot_hdf.f90
    module token_module2
      COMMON /MPIPRIV/ MPI_BOTTOM,MPI_STATUS_IGNORE,MPI_STATUSES_IGNORE
      INTEGER MPI_MAX2, MPI_MIN2
      PARAMETER (MPI_MAX2=100,MPI_MIN2=101)
       integer, parameter :: REAL8 = SELECTED_REAL_KIND(12)
      integer, public, parameter :: TOKEN_MPI_MAX      = MPI_MAX2
      integer, public, parameter :: TOKEN_MPI_MIN      = MPI_MIN2
    real(REAL8) :: reduction_array_r8(200)
    end module token_module2
    module plot_hdf_module
       integer, parameter :: REAL8 = SELECTED_REAL_KIND(12)
      save
      private
    contains
      subroutine hdfsds_r8(imax, jmax, kmax)
        use token_module2,      only : reduction_array_r8
        use token_module2,      only : TOKEN_MPI_MAX, TOKEN_MPI_MIN
      end subroutine hdfsds_r8
    end module plot_hdf_module

-- 
           Summary: internal compiler error: Bus error
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dir at lanl dot gov
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: powerpc-apple-darwin7.8.0


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


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

* [Bug fortran/20151] internal compiler error: Bus error
  2005-02-23  1:30 [Bug fortran/20151] New: internal compiler error: Bus error dir at lanl dot gov
@ 2005-02-23  1:53 ` pinskia at gcc dot gnu dot org
  2005-02-28  4:28 ` tobi at gcc dot gnu dot org
  2005-09-18  5:50 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-23  1:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-22 18:41 -------
Confirmed, thanks for the reduced testcase (and all the other testcases too).
Here is the backtrace:
#0  translate_common (common=0x42305ab0, var_list=0x42305b10) at /Users/pinskia/src/local3/
gcc/gcc/fortran/trans-common.c:780
#1  0x00058f9c in translate_common (common=0x42305ab0, var_list=0x42305b10) at /Users/
pinskia/src/local3/gcc/gcc/fortran/trans-common.c:777
#2  0x0004a864 in gfc_traverse_symtree (st=0x423050f0, func=0x591ac <named_common>) at /
Users/pinskia/src/local3/gcc/gcc/fortran/symbol.c:2277
#3  0x0004a870 in gfc_traverse_symtree (st=0x423050f0, func=0x591ac <named_common>) at /
Users/pinskia/src/local3/gcc/gcc/fortran/symbol.c:2279
#4  0x0005922c in gfc_trans_common (ns=0x423050f0) at /Users/pinskia/src/local3/gcc/gcc/fortran/
trans-common.c:912
#5  0x0005dfdc in gfc_generate_function_code (ns=0x0) at /Users/pinskia/src/local3/gcc/gcc/fortran/
trans-decl.c:2184
#6  0x000503dc in gfc_generate_module_code (ns=0x42804200) at /Users/pinskia/src/local3/gcc/
gcc/fortran/trans.c:706


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-22 18:41:24
               date|                            |


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


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

* [Bug fortran/20151] internal compiler error: Bus error
  2005-02-23  1:30 [Bug fortran/20151] New: internal compiler error: Bus error dir at lanl dot gov
  2005-02-23  1:53 ` [Bug fortran/20151] " pinskia at gcc dot gnu dot org
@ 2005-02-28  4:28 ` tobi at gcc dot gnu dot org
  2005-09-18  5:50 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-02-28  4:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2005-02-27 21:03 -------
Reduced testcase:
    module token_module2
      COMMON /MPIPRIV/ MPI_BOTTOM
      integer i
    end module token_module2
    use token_module2, only: mpi_bottom
    use token_module2, only: i
  end
Removing either of the use lines makes the failure disappear.  Note that the
failure happens also without using the ONLY clauses, but I'm not sure if the
code would be illegal then (and wrongly accepted).

-- 


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


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

* [Bug fortran/20151] internal compiler error: Bus error
  2005-02-23  1:30 [Bug fortran/20151] New: internal compiler error: Bus error dir at lanl dot gov
  2005-02-23  1:53 ` [Bug fortran/20151] " pinskia at gcc dot gnu dot org
  2005-02-28  4:28 ` tobi at gcc dot gnu dot org
@ 2005-09-18  5:50 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-18  5:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-18 05:50 -------
Fixed in 4.1.0.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.0


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


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

end of thread, other threads:[~2005-09-18  5:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-23  1:30 [Bug fortran/20151] New: internal compiler error: Bus error dir at lanl dot gov
2005-02-23  1:53 ` [Bug fortran/20151] " pinskia at gcc dot gnu dot org
2005-02-28  4:28 ` tobi at gcc dot gnu dot org
2005-09-18  5:50 ` pinskia 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).