Opened 8 years ago

#10689 new Bugs

static_assert.hpp: unrecognized #pragma GCC system_header

Reported by: Wojciech Migda <wojtek.golf@…> Owned by: John Maddock
Milestone: To Be Determined Component: static_assert
Version: Boost 1.56.0 Severity: Problem
Keywords: Cc:

Description

I am using boost 1.55.0 within my code. Whenever boost's boost/static_assert.hpp is included the compiler complains about unrecognized pragma. The compiler in question is TI DSP for TMS3200C67x processor, invoked with the --gcc option. This option makes it to predefine the GNUC macro, hence, due to conditional preprocessing "#pragma GCC system_header" line is being subjected to compilation. This pragma is not supported by the TI compiler causing it to emit a warning.

The issue will be resolved once the same solution as for https://svn.boost.org/trac/boost/ticket/7094 is applied in the static_asssert.hpp file.

Change History (0)

Note: See TracTickets for help on using tickets.