-
Notifications
You must be signed in to change notification settings - Fork 102
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
Clang 3.9 linker issue #683
Comments
The linking still does not work
returns
If you want compiler and dependencies for clang 3.9 source /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-llvm39-opt/init_ilcsoft.sh |
I could reproduce the linker error.
inside the IOV class is allowed. This should not produce a linker error and also does not produce one on other |
This
from https://en.cppreference.com/w/cpp/language/static (constant static members) ? Maybe clang 3.9 is overly standard compliant? |
Minimal example #include <algorithm>
#include <cstdint>
#include <limits>
#include <iostream>
class IOV
{
public:
static constexpr std::int64_t MIN_KEY = std::numeric_limits<std::int64_t>::min();
};
//without this in c++14, linking will fail on gcc 9.2.0, clang3.9 (did not test others)
//const std::int64_t IOV::MIN_KEY;
int main ()
{
auto& mini = std::min(IOV::MIN_KEY, std::int64_t(0));
std::cout << mini << std::endl;
return 0;
} |
There is a linking issue of master for clang 3.9(gcc 6.2)
The text was updated successfully, but these errors were encountered: