[MacPorts] #63101: clang-12 @12.0.0: error: non-constant-expression cannot be narrowed from type 'long long' to 'std::size_t' (aka 'unsigned long') in initializer list [-Wc++11-narrowing]
MacPorts
noreply at macports.org
Tue Jun 15 18:47:39 UTC 2021
#63101: clang-12 @12.0.0: error: non-constant-expression cannot be narrowed from
type 'long long' to 'std::size_t' (aka 'unsigned long') in initializer list
[-Wc++11-narrowing]
------------------------+----------------------
Reporter: ryandesign | Owner: kencu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.99
Keywords: highsierra | Port: clang-12
------------------------+----------------------
I can't build clang-12 on High Sierra (with the universal variant in case
that's relevant):
{{{
.../llvm-project-12.0.0.src/flang/lib/Evaluate/constant.cpp:254:30: error:
non-constant-expression cannot be narrowed from type 'long long' to
'std::size_t' (aka 'unsigned long') in initializer list
[-Wc++11-narrowing]
std::size_t elementBytes{length_ * sizeof(decltype(values_[0]))};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63101>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list