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 fortran/35680] [4.3/4.4 regression] ICE on invalid transfer in variable declaration



------- Comment #1 from pault at gcc dot gnu dot org  2008-03-25 20:45 -------
g95 correctly gives:
In file pr35680.f90:5

    integer foo(size(transfer(x, [1])))
                              1
Error: Variable 'x' cannot appear in restricted expression at (1)

Lahey gives:

  1175-S: "SOURCE.F90", line 5, column 13: Lower and upper bounds in array
specifier for 'foo' must be specification expression.


Confirmed

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-03-25 20:45:37
               date|                            |


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


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