Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not use constexpr with std::log in C++14 for ICC #13658

Merged
merged 1 commit into from
Mar 10, 2016

Conversation

davidlt
Copy link
Contributor

@davidlt davidlt commented Mar 9, 2016

C++14 standard prohibits library implementation to mark random C++
standard library functions as being constexpr. That's why this isn't
working with Clang and ICC in general.

It's a bit of gray area here. GCC most likely will lower std::log to
__builtin_log_* intrinsic which are not covered by C++14 standard.
Thus it's __builtin_log_* which is constexpr, thus making it work
under C++14.

Signed-off-by: David Abdurachmanov [email protected]

C++14 standard prohibits library implementation to mark random C++
standard library functions as being `constexpr`. That's why this isn't
working with Clang and ICC in general.

It's a bit of gray area here. GCC most likely will lower  `std::log` to
`__builtin_log_*` intrinsic which are not covered by C++14 standard.
Thus it's `__builtin_log_*` which is `constexpr`, thus making it work
under C++14.

Signed-off-by: David Abdurachmanov <[email protected]>
@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 9, 2016

A new Pull Request was created by @davidlt for CMSSW_8_1_X.

It involves the following packages:

TrackingTools/GsfTracking

@cmsbuild, @cvuosalo, @davidlange6, @slava77 can you please review it and eventually sign? Thanks.
@makortel, @GiacomoSguazzoni, @rovere, @VinInn, @bellan, @istaslis, @gpetruc, @cerati, @dgulhan this is something you requested to watch as well.
@slava77, @Degano, @smuzaffar you are the release manager for this.

cms-bot commands are list here #13028

@slava77
Copy link
Contributor

slava77 commented Mar 9, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 9, 2016

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/11793/console

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 9, 2016

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 9, 2016

@cvuosalo
Copy link
Contributor

cvuosalo commented Mar 9, 2016

+1

For #13658 519c2e1

Fixing small compile-time error to support C++14. There should be no change in monitored quantities.

The code change is satisfactory, and Jenkins tests against baseline CMSSW_8_1_X_2016-03-08-1100 show no significant differences, as expected.

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 9, 2016

This pull request is fully signed and it will be integrated in one of the next CMSSW_8_1_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar

@davidlange6
Copy link
Contributor

+1
(yuck..)

cmsbuild added a commit that referenced this pull request Mar 10, 2016
Do not use constexpr with std::log in C++14 for ICC
@cmsbuild cmsbuild merged commit eb89ad7 into cms-sw:CMSSW_8_1_X Mar 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants