https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125154
Bug ID: 125154
Summary: Infinite compile time whit allocatable recursive
derived type and OpenMP.
Product: gcc
Version: 15.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: dml2011 at free dot fr
Target Milestone: ---
Created attachment 64348
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64348&action=edit
Code showing the infinite compile time
Dear gfortran developers,
I believe, the compilation error is related to the bug 104048.
I've posted this bug with the 104048 one, but one advises me to post it as new
bug report.
I’ve encountered a problem with recursive derived type when used OpenMP.
I’ve modified Arjen code’s (104048) by adding an OpenMP block and making some
simplifications (see the attached file).
I’ve did the following tests:
With a compilation with gfortran (version 14 and 15) with OpenMP, on an arm64
mac and on linux, I've obtained after several seconds:
=> gfortran: fatal error
The compilation and the execution work as expected when:
- the “allocatable” (line 10) is replaced by a “pointer” (line 11)
- the OpenMP is turned off.
Best regards