Modify

Opened 3 months ago

Last modified 3 months ago

#13192 new Bugs

DLL BOOST_DLL_ALIAS does not compile with Intel C++

Reported by: oley@… Owned by:
Milestone: To Be Determined Component: None
Version: Boost 1.65.0 Severity: Problem
Keywords: Cc:

Description

The problem is similar to #12290, which was fixed in:

Fix aliases on Windows+IntelCompiler? (trac 12290):

-#if BOOST_COMP_MSVC
+#if BOOST_COMP_MSVC || (BOOST_COMP_INTEL && BOOST_OS_WINDOWS)

I have Intel® Parallel Studio XE 2017 Update 4 (2017.4.120) integrated with MS Visual Studio 2017 Enterprise Update 3 (15.3.3) and the compiler detection in intel.h:

#ifdef BOOST_COMP_INTEL_DETECTION
#   if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
#       define BOOST_COMP_INTEL_EMULATED BOOST_COMP_INTEL_DETECTION
#   else
#       undef BOOST_COMP_INTEL
#       define BOOST_COMP_INTEL BOOST_COMP_INTEL_DETECTION
#   endif
#   define BOOST_COMP_INTEL_AVAILABLE
#   include <boost/predef/detail/comp_detected.h>
#endif

defines:

BOOST_COMP_INTEL_EMULATED <= BOOST_COMP_INTEL_DETECTION

BOOST_COMP_INTEL <= BOOST_VERSION_NUMBER_NOT_AVAILABLE

This causes the BOOST_DLL_SECTION to be incorrectly defined.

Attachments (0)

Change History (1)

comment:1 Changed 3 months ago by anonymous

Version: Boost 1.63.0Boost 1.65.0

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.