This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34199] segfault for TRANSFER integer to TYPE(C_PTR)
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 May 2008 23:24:05 -0000
- Subject: [Bug fortran/34199] segfault for TRANSFER integer to TYPE(C_PTR)
- References: <bug-34199-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from fxcoudert at gcc dot gnu dot org 2008-05-14 23:24 -------
(In reply to comment #5)
> Patch by FX:
> http://gcc.gnu.org/ml/gcc-patches/2008-03/msg00546.html
>
> My review:
> http://gcc.gnu.org/ml/fortran/2008-03/msg00232.html
Your second point in the review is spot on, the patch is certainly not doing
the right thing (the trans-expr.c part, at least) :(
I've spent some time looking into other options, but this is all too confusing:
I wonder if we shouldn't have made these derived types into structures all the
way, instead of trying to morph things into pointer types when comes code
generation.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
URL|http://gcc.gnu.org/ml/gcc- |
|patches/2008- |
|03/msg00546.html |
Keywords|patch |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34199