This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/35983] C_LOC in derived type constructor gives weird result



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]