[Boost-bugs] [Boost C++ Libraries] #11068: Link error with icpc when using Boost* 1.51+ MPL library and g++*

Subject: [Boost-bugs] [Boost C++ Libraries] #11068: Link error with icpc when using Boost* 1.51+ MPL library and g++*
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-03-03 23:16:19


#11068: Link error with icpc when using Boost* 1.51+ MPL library and g++*
-------------------------------------------------+-----------------------
 Reporter: Jennifer Jiang <jennifer.l.jiang@…> | Owner: agurtovoy
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: mpl
  Version: Boost 1.57.0 | Severity: Problem
 Keywords: |
-------------------------------------------------+-----------------------
 Our customer reported this issue with boost 1.51, the latest boost 1.57
 still has this issue. please fix.

 the issue detail and work around is also posted online if you google the
 title.

 %cat t.h
 #include <boost/mpl/vector.hpp>
 template<typename T> struct my;
 void foo(my<boost::mpl::vector<> >* = 0);

 %cat u.cpp
 #include "t.h"
 int main() { foo();}

 %cat t.cpp
 #include "t.h"
 void foo(my<boost::mpl::vector<> >*) {}

 %icpc -c -I$BOOST_INC u.cpp
 %g++ -c -I$BOOST_INC t.cpp
 %icpc u.o t.o
 u.o: In function `main':
 u.cpp:(.text+0x2b): undefined reference to
 `foo(my<boost::mpl::vector<boost::mpl::na, boost::mpl::na, boost::mpl::na,
 boost::mpl::na, b:mpl::na, boost::mpl::na, boost::mpl::na, boost::mpl::na,
 boost::mpl::na, boost::mpl::na, boost::mpl::na, boost::mpl::na,
 boost::mpl::nost::mpl::na, boost::mpl::na, boost::mpl::na, boost::mpl::na,
 boost::mpl::na, boost::mpl::na, boost::mpl::na> >*)'

 Work around:
 1.Go to "./boost/mpl/aux/config" directory
 2.Comment out the following line in the file adl.hpp
          BOOST_WORKAROUND(BOOST_INTEL_CXX_VERSION, BOOST_TESTED_AT(810))

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11068>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC