This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/37236] [4.3, 4.4 Regression] ICE: in mark_operand_necessary, at tree-ssa-dce.c:242



------- Comment #4 from burnus at gcc dot gnu dot org  2008-08-25 20:39 -------
Note: Using
  COMPLEX*16 X(1)
defines a rank-one array with a single argument. Accessing then
  X(2)
is invalid according to the Fortran standard - there is no such element. (I
know that several old Fortran programs use such a wrong syntax both as actual
as well as as formal argument even though a complete array is meant.)

As Dominique wrote, one can use:
  COMPLEX*16 X(*)
which is the correct syntax.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]