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

 NAMELIST /NLIST/ a,b
                     1
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]
 NAMELIST /NLIST/ a,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
bounds.


-- 

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


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

Reply via email to