
#8527: container's Typeable.h is being shadowed by base's Typeable.h during
preprocessing
------------------------------------+-------------------------------------
Reporter: parcs | Owner: parcs
Type: bug | Status: new
Priority: normal | Milestone:
Component: Package system | Version: 7.7
Keywords: | Operating System: Unknown/Multiple
Architecture: Unknown/Multiple | Type of failure: None/Unknown
Difficulty: Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: |
------------------------------------+-------------------------------------
Here's a reduced test case:
== cpp.hs ==
{{{
#!haskell
{-# LANGUAGE CPP #-}
#include "Typeable.h"
main = return ()
}}}
== command line ==
{{{
$ ghc-stage2 -c -package base cpp.hs
In file included from cpp.hs:4:0:
/home/patrick/code/ghc/libraries/base/include/Typeable.h:17:2:
warning: #warning