[GHC] #8222: CTYPE pragma on newtype is ignored

GHC ghc-devs at haskell.org
Mon Mar 23 15:02:04 UTC 2015


#8222: CTYPE pragma on newtype is ignored
-------------------------------------+-------------------------------------
        Reporter:  akio              |                   Owner:
            Type:  bug               |                  Status:  infoneeded
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.6.3
      Resolution:                    |                Keywords:
Operating System:  Linux             |            Architecture:  x86_64
 Type of failure:  Incorrect result  |  (amd64)
  at runtime                         |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------
Changes (by thomie):

 * status:  new => infoneeded


Comment:

 akio: this problem seems fixed in 7.8 and later, can you confirm?

 I see the following line in the generated C file, which looks correct to
 me:

 {{{
 void* ghczuwrapperZC0ZCmainZCMainZCCMSGzuDATA(struct cmsghdr* a1) {return
 CMSG_DATA(a1);}
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8222#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list