public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/22502] New: ICE in build_array_type, at tree.c:4845
@ 2005-07-15 15:02 schnetter at aei dot mpg dot de
  2005-07-15 15:05 ` [Bug fortran/22502] " schnetter at aei dot mpg dot de
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: schnetter at aei dot mpg dot de @ 2005-07-15 15:02 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1169 bytes --]

The attached source file, when compiled with 
 
GNU Fortran 95 (GCC 4.1.0 20050715 (experimental)) 
 
/home/eschnett/gcc /bin/gfortran -ftrapv -fwrapv -march=pentium4 
-malign-double -g3 -Wall -Wshadow -c -o HarmExactEvol_ExactADM.F90.o 
HarmExactEvol_ExactADM.f90 
 
leads to the error message 
 
/home/eschnett/Calpha/Cactus/arrangements/Abigel/HarmExactEvol/src/HarmExactEvol 
_ExactADM.F90:154: internal compiler error: tree check: expected class 'type', 
h 
ave 'exceptional' (^O¶ÂÁà^F^E<80><9B><80>x      ^A^O<85>0^B) in 
build_array_type 
, at tree.c:4845 
 
Note that the error message itself is corrupted.

-- 
           Summary: ICE in build_array_type, at tree.c:4845
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schnetter at aei dot mpg dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug fortran/22502] ICE in build_array_type, at tree.c:4845
  2005-07-15 15:02 [Bug fortran/22502] New: ICE in build_array_type, at tree.c:4845 schnetter at aei dot mpg dot de
@ 2005-07-15 15:05 ` schnetter at aei dot mpg dot de
  2005-07-15 16:36 ` [Bug fortran/22502] [4.0.1/4.1 regression] ICE with "any" reichelt at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: schnetter at aei dot mpg dot de @ 2005-07-15 15:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From schnetter at aei dot mpg dot de  2005-07-15 15:02 -------
Created an attachment (id=9281)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9281&action=view)
Failing gzipped source code


-- 


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


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

* [Bug fortran/22502] [4.0.1/4.1 regression] ICE with "any"
  2005-07-15 15:02 [Bug fortran/22502] New: ICE in build_array_type, at tree.c:4845 schnetter at aei dot mpg dot de
  2005-07-15 15:05 ` [Bug fortran/22502] " schnetter at aei dot mpg dot de
@ 2005-07-15 16:36 ` reichelt at gcc dot gnu dot org
  2005-07-15 16:52 ` [Bug fortran/22502] [4.0.1/4.1 regression] ICE constructing arrays with "(/ /)" reichelt at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-07-15 16:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-07-15 16:28 -------
Confirmed.

There seems to be some memory corruption. With the command line arguments
"--param ggc-min-expand=0 --param ggc-min-heapsize=0" I get a plain segfault.
The segfault can be reproduced with the following testcase (compile with
"gfortran --param ggc-min-expand=0 --param ggc-min-heapsize=0"):

========================================
subroutine FOO
end subroutine FOO

subroutine BAR
  integer :: I
  if (any ((/ I /) .eq. 0) ) I = 0
end subroutine BAR
========================================

The problem appeared in gcc 4.0.1 (reduced and original testcase).

Btw, one has to strip the "use" commands from the original testcase
in order to compile it.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
  GCC build triplet|i686-pc-linux-gnu           |
   GCC host triplet|i686-pc-linux-gnu           |
 GCC target triplet|i686-pc-linux-gnu           |
           Keywords|                            |ice-on-valid-code, monitored
      Known to fail|                            |4.0.1 4.0.2 4.1.0
      Known to work|                            |4.0.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-15 16:28:02
               date|                            |
            Summary|ICE in build_array_type, at |[4.0.1/4.1 regression] ICE
                   |tree.c:4845                 |with "any"
   Target Milestone|---                         |4.0.2


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


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

* [Bug fortran/22502] [4.0.1/4.1 regression] ICE constructing arrays with "(/ /)"
  2005-07-15 15:02 [Bug fortran/22502] New: ICE in build_array_type, at tree.c:4845 schnetter at aei dot mpg dot de
  2005-07-15 15:05 ` [Bug fortran/22502] " schnetter at aei dot mpg dot de
  2005-07-15 16:36 ` [Bug fortran/22502] [4.0.1/4.1 regression] ICE with "any" reichelt at gcc dot gnu dot org
@ 2005-07-15 16:52 ` reichelt at gcc dot gnu dot org
  2005-07-15 21:22 ` reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-07-15 16:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-07-15 16:40 -------
The "ANY" function isn't the culprit.
Building arrays with (/ /) causes the problem:

=======================
subroutine FOO
end subroutine FOO

subroutine BAR
  integer :: J(1)
  J = (/ 1 /)
end subroutine BAR
=======================


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.0.1/4.1 regression] ICE  |[4.0.1/4.1 regression] ICE
                   |with "any"                  |constructing arrays with "(/
                   |                            |/)"


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


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

* [Bug fortran/22502] [4.0.1/4.1 regression] ICE constructing arrays with "(/ /)"
  2005-07-15 15:02 [Bug fortran/22502] New: ICE in build_array_type, at tree.c:4845 schnetter at aei dot mpg dot de
                   ` (2 preceding siblings ...)
  2005-07-15 16:52 ` [Bug fortran/22502] [4.0.1/4.1 regression] ICE constructing arrays with "(/ /)" reichelt at gcc dot gnu dot org
@ 2005-07-15 21:22 ` reichelt at gcc dot gnu dot org
  2005-07-29 10:56 ` [Bug fortran/22502] [4.0.1/4.1 Regression] " reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-07-15 21:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-07-15 21:22 -------
Zdenek, this was caused by your patch
http://gcc.gnu.org/ml/fortran/2005-05/msg00178.html

Could you please have a look?


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rakdver at gcc dot gnu dot
                   |                            |org


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


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

* [Bug fortran/22502] [4.0.1/4.1 Regression] ICE constructing arrays with "(/ /)"
  2005-07-15 15:02 [Bug fortran/22502] New: ICE in build_array_type, at tree.c:4845 schnetter at aei dot mpg dot de
                   ` (3 preceding siblings ...)
  2005-07-15 21:22 ` reichelt at gcc dot gnu dot org
@ 2005-07-29 10:56 ` reichelt at gcc dot gnu dot org
  2005-08-22  4:43 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-07-29 10:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-07-29 09:54 -------
Steven,

your patch
http://gcc.gnu.org/ml/gcc-cvs/2005-07/msg01042.html
seems to fix this PR on mainline.

Is this an appropriate fix for the 4.0 branch, too?
Would you mind adding a testcase?

Btw, your patch changes trans-types.c, but the ChangeLog does not mention
the change. Could you please fix that?


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |steven at gcc dot gnu dot
                   |                            |org


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


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

* [Bug fortran/22502] [4.0.1/4.1 Regression] ICE constructing arrays with "(/ /)"
  2005-07-15 15:02 [Bug fortran/22502] New: ICE in build_array_type, at tree.c:4845 schnetter at aei dot mpg dot de
                   ` (4 preceding siblings ...)
  2005-07-29 10:56 ` [Bug fortran/22502] [4.0.1/4.1 Regression] " reichelt at gcc dot gnu dot org
@ 2005-08-22  4:43 ` mmitchel at gcc dot gnu dot org
  2005-09-10  7:50 ` [Bug fortran/22502] [4.0.1 " reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-08-22  4:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-08-22 03:52 -------
Fortran is not release-critical; removing target milestone.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.2                       |---


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


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

* [Bug fortran/22502] [4.0.1 Regression] ICE constructing arrays with "(/ /)"
  2005-07-15 15:02 [Bug fortran/22502] New: ICE in build_array_type, at tree.c:4845 schnetter at aei dot mpg dot de
                   ` (5 preceding siblings ...)
  2005-08-22  4:43 ` mmitchel at gcc dot gnu dot org
@ 2005-09-10  7:50 ` reichelt at gcc dot gnu dot org
  2005-09-10 21:40 ` cvs-commit at gcc dot gnu dot org
  2005-09-10 21:42 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-09-10  7:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-09-10 07:50 -------
Taking care of the backport to the 4.0 branch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |reichelt at gcc dot gnu dot
                   |dot org                     |org
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2005-
                   |                            |09/msg00646.html
             Status|NEW                         |ASSIGNED
           Keywords|                            |patch
      Known to fail|4.0.1 4.0.2 4.1.0           |4.0.1 4.0.2
      Known to work|4.0.0                       |4.0.0 4.1.0
            Summary|[4.0.1/4.1 Regression] ICE  |[4.0.1 Regression] ICE
                   |constructing arrays with "(/|constructing arrays with "(/
                   |/)"                         |/)"


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


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

* [Bug fortran/22502] [4.0.1 Regression] ICE constructing arrays with "(/ /)"
  2005-07-15 15:02 [Bug fortran/22502] New: ICE in build_array_type, at tree.c:4845 schnetter at aei dot mpg dot de
                   ` (6 preceding siblings ...)
  2005-09-10  7:50 ` [Bug fortran/22502] [4.0.1 " reichelt at gcc dot gnu dot org
@ 2005-09-10 21:40 ` cvs-commit at gcc dot gnu dot org
  2005-09-10 21:42 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-10 21:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-09-10 21:40 -------
Subject: Bug 22502

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	reichelt@gcc.gnu.org	2005-09-10 21:40:00

Modified files:
	gcc/fortran    : ChangeLog trans-types.h 

Log message:
	PR fortran/22502
	Backport:
	
	2005-07-29  Steven Bosscher  <stevenb@suse.de>
	* trans-types.h (gfc_array_range_type): Add missing GTY decl for this.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.116&r2=1.335.2.117
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-types.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.9&r2=1.9.14.1



-- 


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


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

* [Bug fortran/22502] [4.0.1 Regression] ICE constructing arrays with "(/ /)"
  2005-07-15 15:02 [Bug fortran/22502] New: ICE in build_array_type, at tree.c:4845 schnetter at aei dot mpg dot de
                   ` (7 preceding siblings ...)
  2005-09-10 21:40 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-10 21:42 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-09-10 21:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-09-10 21:42 -------
Now also fixed on the 4.0 branch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.2


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


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

end of thread, other threads:[~2005-09-10 21:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-15 15:02 [Bug fortran/22502] New: ICE in build_array_type, at tree.c:4845 schnetter at aei dot mpg dot de
2005-07-15 15:05 ` [Bug fortran/22502] " schnetter at aei dot mpg dot de
2005-07-15 16:36 ` [Bug fortran/22502] [4.0.1/4.1 regression] ICE with "any" reichelt at gcc dot gnu dot org
2005-07-15 16:52 ` [Bug fortran/22502] [4.0.1/4.1 regression] ICE constructing arrays with "(/ /)" reichelt at gcc dot gnu dot org
2005-07-15 21:22 ` reichelt at gcc dot gnu dot org
2005-07-29 10:56 ` [Bug fortran/22502] [4.0.1/4.1 Regression] " reichelt at gcc dot gnu dot org
2005-08-22  4:43 ` mmitchel at gcc dot gnu dot org
2005-09-10  7:50 ` [Bug fortran/22502] [4.0.1 " reichelt at gcc dot gnu dot org
2005-09-10 21:40 ` cvs-commit at gcc dot gnu dot org
2005-09-10 21:42 ` reichelt 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).