[GHC] #10628: clang's cpp causes incorrect line numbers in type errors

GHC ghc-devs at haskell.org
Fri Jul 10 21:36:39 UTC 2015


#10628: clang's cpp causes incorrect line numbers in type errors
-------------------------------------+-------------------------------------
        Reporter:  gridaphobe        |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  MacOS X           |            Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  warning at compile-time            |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by mpickering):

 Here is the preprocessed source. There is an extra line inserted after the
 pragma.

 {{{
 {-# LINE 1 "test.hs" #-}
 # 1 "test.hs"
 # 1 "<built-in>" 1
 # 16 "<built-in>"
 # 1
 "/Users/matt/Downloads/ghc-7.10.1.app/Contents/lib/ghc-7.10.1/include/ghcversion.h"
 1


















 # 17 "<built-in>" 2
 # 1 "test.hs" 2
 {-# LANGUAGE CPP
   #-}

 module Foo where

 foo :: String
 foo = True
 }}}

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


More information about the ghc-tickets mailing list