[Bug fortran/25060] assignment of assumed size array not allowed

fxcoudert at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Nov 26 19:30:00 GMT 2005



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

   a = 1.e0
    1
Error: Can't determine UBOUND for the final dimension of assumed-size array at
(1)
## Intel ##
fortcom: Error: foo.f90, line 3: The upper bound shall not be omitted in the
last dimension of a reference to an assumed size array.   [A]
   a = 1.e0
---^
compilation aborted for foo.f90 (code 1)
## Portland ##
PGF90-S-0084-Illegal use of symbol a - extent of assumed size array is unknown
(foo.f90: 3)
  0 inform,   0 warnings,   1 severes, 0 fatal for e
## Sun ##

   a = 1.e0
   ^
"foo.f90", Line = 3, Column = 4: ERROR: A variable in an assignment statement
must not be an assumed-size array.


-- 

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:30:48
               date|                            |
            Summary|better diagnostic needed    |assignment of assumed size
                   |                            |array not allowed


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



More information about the Gcc-bugs mailing list