This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/82375] PDT components in PDT declarations fail to compile
- From: "pault at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 01 Oct 2017 11:01:14 +0000
- Subject: [Bug fortran/82375] PDT components in PDT declarations fail to compile
- Auto-submitted: auto-generated
- References: <bug-82375-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82375
Paul Thomas <pault at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|PDT error |PDT components in PDT
| |declarations fail to
| |compile
--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> ---
Dear Ian and Dominique,
I can confirm both the original bug and warn you that recursive allocatable
components are even more spectacularly bad, causing a segmentation fault in
resolve.c.
If you give 'real_kind' a default value, a truly strange error results:
type (link(real_kind=wp)), pointer :: root, current
1
Error: Pointer assignment target is neither TARGET nor POINTER at (1)
***sigh***
Compilation also fails when the PDT component is not the same type.
This is such a significant problem that it has moved to the top of my TODO
list. Many thanks once again for reporting it.
Paul