Giter Site home page Giter Site logo

Some test files failed to build due to "error: 'namespace arg = boost::cnv::boost::cnv::parameter;' redeclared as different kind of symbol" about convert HOT 6 CLOSED

boostorg avatar boostorg commented on June 27, 2024
Some test files failed to build due to "error: 'namespace arg = boost::cnv::boost::cnv::parameter;' redeclared as different kind of symbol"

from convert.

Comments (6)

yet-another-user avatar yet-another-user commented on June 27, 2024

Thank you for your input. Much appreciated. Would you mind to clarify under what circumstances it fails to build... because 1) it builds on my machine (ubuntu); 2) it builds and runs in Boorst regression (https://www.boost.org/development/tests/develop/developer/convert.html). From what I understand the "arg" you reference is, in fact, in the std namspace, i.e. std::arg declared in ... which I do not see even included in the mentioned cpp files. SO, again, would you mind shedding some light on how the problem pops up? Thanks.

from convert.

BinCaoWR avatar BinCaoWR commented on June 27, 2024

Thanks for your quick response. I build the tests on gcc-8.1.0 & C++14. If it cannot be reproduced in your environment, it would be probably due to arg is not declared in your complex.h on the C++/toolchain version you are using.
Here is the info about how complex can be included in the boost cpp files.

../libs/convert/test/performance.cpp: At global scope:
../libs/convert/test/performance.cpp:31:38: error: 'namespace arg = boost::cnv::boost::cnv::parameter;' redeclared as different kind of symbol
namespace arg = boost::cnv::parameter;
^
In file included from ccomplex:16,
from complex:5,
from boost_1_70_0/boost/type_traits/is_complex.hpp:12,
from boost_1_70_0/boost/type_traits.hpp:96,
from boost_1_70_0/boost/convert/detail/is_fun.hpp:11,
from boost_1_70_0/boost/convert.hpp:28,
from ../libs/convert/test/performance.cpp:13:
complex.h:664:20: note: previous declaration 'long double arg(_Lcomplex)'
inline long double arg(_Lcomplex _Left)
^~~

from convert.

yet-another-user avatar yet-another-user commented on June 27, 2024

from convert.

BinCaoWR avatar BinCaoWR commented on June 27, 2024

I'm not sure why the boost regression can pass. Perhaps need to confirm if is_complex.hpp is included and how arg(the conditionals, etc) is defined in complex.

from convert.

yet-another-user avatar yet-another-user commented on June 27, 2024

I have no forgotten about the issue. Just recently upgraded to gcc-8.3. Will be trying to see why tat might be failing... because IMO it should not. :-)

from convert.

yet-another-user avatar yet-another-user commented on June 27, 2024

Can't reproduce. Closing.

from convert.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.