------- Comment #4 from burnus at gcc dot gnu dot org  2007-07-08 17:49 -------
> function f()
>   integer :: i = irand()
>   f = i
> end function

We should give a message such as ifort:
  The initialization shall not appear for this object name.   [F]
  This array or function or substring is invalid in constant expressions.
[IRAND]
The place to change is check_init_expr; maybe gfc_intrinsic_func_interface.
Giving an error should fix both problems.


-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to