This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/54917] [4.7/4.8 Regression] [OOP] TRANSFER on polymorphic variable causes ICE
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 13 Oct 2012 10:01:00 +0000
- Subject: [Bug fortran/54917] [4.7/4.8 Regression] [OOP] TRANSFER on polymorphic variable causes ICE
- Auto-submitted: auto-generated
- References: <bug-54917-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54917
--- Comment #4 from janus at gcc dot gnu.org 2012-10-13 10:01:00 UTC ---
(In reply to comment #3)
> It could be r177486 or 177486?
Not sure. (Note: Both revisions you quote are the same.)
Anyway, I can confirm that at least the ICE with -Wsurprising is a regression
in 4.7 and trunk, which does not appear with 4.5 and 4.6:
! The following causes an ICE if -Wsurprising is on.
subroutine test_routine1(arg)
implicit none
type test_type
integer :: test_comp
end type
class(test_type) :: arg
integer :: i
i = transfer(arg, 1)
end subroutine