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

Reply via email to