#3066: Crash with bogus FFI declaration
--------------------------------------+-------------------------------------
    Reporter:  simonpj                |        Owner:  simonpj         
        Type:  bug                    |       Status:  new             
    Priority:  high                   |    Milestone:                  
   Component:  Compiler               |      Version:  6.10.1          
    Severity:  normal                 |   Resolution:                  
    Keywords:                         |   Difficulty:  Unknown         
    Testcase:  ffi/should_fail/T3066  |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple       |  
--------------------------------------+-------------------------------------
Changes (by igloo):

  * owner:  igloo => simonpj
  * type:  merge => bug

Comment:

 This breaks the build:
 {{{
 /home/ian/ghc/darcs/ghc/ghc/stage1-inplace/ghc -package-name base-4.0.0.0
 -hide-all-packages -no-user-package-conf -i -idist/build -i.
 -idist/build/autogen -Idist/build/autogen -Idist/build -Iinclude -optP-
 include -optPdist/build/autogen/cabal_macros.h -#include "HsBase.h" -odir
 dist/build -hidir dist/build -stubdir dist/build -package ghc-prim-0.1.0.0
 -package integer-0.1.0.0 -package rts-1.0 -O -package-name base
 -XMagicHash -XExistentialQuantification -XRank2Types -XScopedTypeVariables
 -XUnboxedTuples -XForeignFunctionInterface -XUnliftedFFITypes
 -XDeriveDataTypeable -XGeneralizedNewtypeDeriving -XFlexibleInstances
 -XStandaloneDeriving -XPatternGuards -XEmptyDataDecls -XNoImplicitPrelude
 -XCPP -idist/build  -Werror -H64m -O0 -fasm -O -fasm -dcore-lint -Wall
 -fno-warn-deprecated-flags -c Foreign/Marshal/Alloc.hs -o
 dist/build/Foreign/Marshal/Alloc.o  -ohi
 dist/build/Foreign/Marshal/Alloc.hi

 Foreign/Marshal/Alloc.hs:201:0:
     Unacceptable type in foreign declaration: forall a. FinalizerPtr a
     When checking declaration:
         foreign import ccall unsafe "static stdlib.h &free" finalizerFree
           :: FinalizerPtr a
 make[2]: *** [dist/build/Foreign/Marshal/Alloc.o] Error 1
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3066#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to