Compiler error with intel
- Dominant language
- C++
- Stars
- 16
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I`ve posted the issue before in Boost.Log but was redirected to this project.
I have trouble to compile the following minimal example using actual 1.72 Boost Log with the intel compiler
### icpc version 19.0.5.281 (gcc version 4.8.5 compatibility)
```
#include "boost/log/trivial.hpp"
using namespace std;
int main(int argc, char** argv){
BOOST_LOG_TRIVIAL(error) << "Hello world";
return 0;
}
```
This results in the following compile error:
```
icpc -c -g -I/opt/tools/boost/boost-1.72.0/include -std=c++11 -MMD -MP -MF "build/Debug/Intel-Linux/main.o.d" -o build/Debug/Intel-Linux/main.o main.cpp
/opt/tools/boost/boost-1.72.0/include/boost/log/sources/severity_feature.hpp(252): error: more than one operator "|" matches these operands:
function template "boost::enable_if, boost::mpl::if_, boost::mpl::false_, boost::mpl::true_>, boost::mpl::false_>::type, boost::parameter::aux::default_>::type boost::parameter::keyword::operator|(Default &) const [with
Tag=boost::log::v2_mt_posix::keywords::tag::severity]"
function template "boost::enable_if, boost::mpl::false_, boost::mpl::eval_if, boost::mpl::true_, boost::mpl::if_, boost::mpl::true_, boost::mpl::false_>>>::type,
boost::parameter::aux::default_r_>::type boost::parameter::keyword::operator|(Default &&) const [with Tag=boost::log::v2_mt_posix::keywords::tag::severity]"
operand types are: const boost::parameter::keyword | boost::log::v2_mt_posix::trivial::severity_level
m_SeverityAttr.set_value(args[keywords::severity | m_DefaultSeverity]);
^
detected during:
instantiation of "boost::log::v2_mt_posix::record boost::log::v2_mt_posix::sources::basic_severity_logger::open_record_unlocked(const ArgsT &) [with BaseT=boost::log::v2_mt_posix::sources::basic_logger, boost::log::v2_mt_posix::sources::multi_thread_model>, LevelT=boost::log::v2_mt_posix::trivial::severity_level,
ArgsT=boost::parameter::aux::tagged_argument]" at line 459 of "/opt/tools/boost/boost-1.72.0/include/boost/log/sources/basic_logger.hpp"
instantiation of "boost::log::v2_mt_posix::record boost::log::v2_mt_posix::sources::basic_composite_logger::open_record(const ArgsT &) [with CharT=char, FinalT=boost::log::v2_mt_posix::sources::severity_logger_mt, ThreadingModelT=boost::log::v2_mt_posix::sources::multi_thread_model,
FeaturesT=boost::log::v2_mt_posix::sources::features>, ArgsT=boost::parameter::aux::tagged_argument]" at line 6 of "main.cpp"
compilation aborted for main.cpp (code 2)
```
With gcc everything is fine. It seems that changes came with 1.71 lead to this.
Thanks
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.