This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35983] C_LOC in derived type constructor gives weird result
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Apr 2008 11:40:53 -0000
- Subject: [Bug fortran/35983] C_LOC in derived type constructor gives weird result
- References: <bug-35983-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2008-04-20 11:40 -------
Confirm. While for
type(c_ptr) :: cptr
cptr = c_loc(buf)
the dump is:
void * D.910;
D.910 = (void *) &buf;
dd.address = D.910;
Your structure constructor, DD = descr(c_loc(buf)), gives:
struct descr descr.2;
descr.2.address = 0B;
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2008-04-20 11:40:52
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35983