Bug 82036 - [F08] Recursive allocatable class components cause infinite loop in compilation
Summary: [F08] Recursive allocatable class components cause infinite loop in compilation
Status: ASSIGNED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 8.0
: P3 normal
Target Milestone: ---
Assignee: Paul Thomas
URL:
Keywords:
Depends on:
Blocks: F2008
  Show dependency treegraph
 
Reported: 2017-08-30 14:39 UTC by Paul Thomas
Modified: 2018-08-17 14:10 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2017-08-30 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Thomas 2017-08-30 14:39:34 UTC
Reported on clf by Ev. Drikos

type t6
   integer :: i
   class(t6), allocatable :: foo
end type t6
type(t6) :: x

x = t6(42, t6(99,NULL()))

print *, "hello", x%foo%i

end

causes an infinite compiler loop. Replacing CLASS with TYPE in the component declaration removes the problem.

I will take it.

Paul
Comment 1 Paul Thomas 2017-08-30 14:40:13 UTC
Taking it

Paul
Comment 2 Jürgen Reuter 2018-08-17 14:10:49 UTC
In the meantime, this has become an ICE.