
#14784: RTS header files can't be used with a C++ compiler -------------------------------------+------------------------------------- Reporter: niteria | Owner: hvr Type: bug | Status: new Priority: highest | Milestone: 8.4.1 Component: Runtime System | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by hvr): Ok, so, the check at that place is to fail early, in case C compiler is thrown at the RTS header files while *not* being in C99 mode (due to misconfiguration or whatever), rather than run into less obvious compile errors lateron. If we can establish the minimum version of ISO C++ which supports all C99 features we rely on, we can tweak the CPP check to something like e.g. {{{#!c #if !((__cplusplus >= 201103L) || (__STDC_VERSION__ >= 199901L)) # error __STDC_VERSION__ does not advertise C99 or later, nor C++11 or later #endif }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14784#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler