https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110547

--- Comment #2 from Jürgen Reuter <juergen.reuter at desy dot de> ---
When I checked this with the NAG compiler there was a different issue which got
now fixed in the NAG version 7245, but the output from the NAG compiler is
 DESTRUCT FROM DEPTH  -1  : 0
 DEPTH  1  :  1
 DEPTH  2  :  3
 DESTRUCT FROM DEPTH  2  : 3
 DEPTH  3  :  2
 DESTRUCT FROM DEPTH  3  : 2
in line with the output from gfortran. Malcolm Cohen from NAG wrote that he
checked with the OpenMP 6.0 standard, where it seems to say that private items
of finalizable type are finalized at the end of the region. This would support
that gfortran and NAG are correct, no?

Reply via email to