Opened 3 years ago

#13620 new bug

hsc2hs parses incorrectly '#ifdef' under '#{enum' in '--cross-compile' mode

Reported by: slyfox Owned by:
Priority: normal Milestone:
Component: hsc2hs Version: 8.0.1
Keywords: Cc: hvr, Phyx-
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


The code is simplified version of something from Win32 package (

#{enum Int ,
 , a       = sizeof(int)
#if 0
 , b       = sizeof(char)
$ hsc2hs b.hsc -o b.hs-native
$ hsc2hs b.hsc -o b.hs-cross --cross-compile
b.hsc:1  sizeof(int)
#if 0
  is not an integer

I'm not sure if it's a valid .hsc but having at least the same (valid or invalid) result in both modes would be nice.

Change History (0)

Note: See TracTickets for help on using tickets.