This is the mail archive of the 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 fortran/25054] nonconstant bounds array cannot appear in a namelist

------- Comment #1 from fxcoudert at gcc dot gnu dot org  2005-11-26 19:13 -------
## g95 ##
In file foo.f90:3

Error: Variable 'b' at (1) must have constant bounds to be in a NAMELIST
## Intel ##
fortcom: Warning: foo.f90, line 2: This name has not been given an explicit
type.   [I]
 integer :: a,b(I)
fortcom: Error: foo.f90, line 3: A NAMELIST group object must not be an array
with nonconstant bounds.   [B]
compilation aborted for foo.f90 (code 1)
## Portland ##
PGF90-S-0108-Illegal variable, b, in NAMELIST group nlist (foo.f90: 3)
  0 inform,   0 warnings,   1 severes, 0 fatal for s1
## Sun ##

 integer :: a,b(I)
"foo.f90", Line = 2, Column = 15: ERROR: "B" is a namelist-group-object,
therefore it must not be declared as an explicit-shape array with nonconstant


fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |accepts-invalid
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-26 19:13:50
               date|                            |
            Summary|better diagnostic needed    |nonconstant bounds array
                   |                            |cannot appear in a namelist

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