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/56386] [F03] ICE with ASSOCIATE construct and an derived type array component


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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-04-16
                 CC|                            |burnus at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2013-04-16 17:17:52 UTC ---
Related test case by the bug reporterm
https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.fortran/UvBX1kfuFqs


This time rejecting the code instead of ICEing:

   print *,x%i
             1
Error: Symbol 'x' at (1) has no IMPLICIT type



program p
  type t
    integer :: i = 0
  end type

  associate (x=>f())
    print *,x%i
  end associate

  contains
    function f()
      type(t) f
      f%i = 5
    end function
end program


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