[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
Sat Jun 19 23:06:24 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
Resolution: | Keywords: highsierra
Port: clang-12 |
-------------------------+------------------------
Comment (by ryandesign):
Even without universal, clang-12 won't build with clang-10:
{{{
llvm/include/llvm/Demangle/ItaniumDemangle.h:955:10: error: expression is
not an integral constant expression
case TemplateParamKind::Type:
^~~~~~~~~~~~~~~~~~~~~~~
}}}
Nor will it build with clang-11:
{{{
llvm/include/llvm/Demangle/ItaniumDemangle.h:116:8: error: ISO C++ forbids
forward references to 'enum' types
enum Kind : unsigned char {
^
llvm/include/llvm/Demangle/ItaniumDemangle.h:116:24: error: expected '('
for function-style cast or type construction
enum Kind : unsigned char {
~~~~~~~~ ^
llvm/include/llvm/Demangle/ItaniumDemangle.h:116:13: error: field has
incomplete type 'enum Kind'
enum Kind : unsigned char {
^
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63101#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list