------- 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

Reply via email to