[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
Wed Jun 16 11:53:04 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):

 Yes, clang-10 and clang-11 build fine with the universal variant.

 {{{
 $ port -v installed name:clang-1
 The following ports are currently installed:
   clang-10 @10.0.1_5+analyzer+libstdcxx+universal (active)
 requested_variants='+analyzer+libstdcxx+universal' platform='darwin 17'
 archs='i386 x86_64' date='2021-05-08T03:37:26-0500'
   clang-11 @11.1.0_3+analyzer+libstdcxx+universal (active)
 requested_variants='+analyzer+libstdcxx+universal' platform='darwin 17'
 archs='i386 x86_64' date='2021-06-16T06:13:18-0500'
   clang-12 @12.0.0_0+libstdcxx (active) requested_variants='-universal'
 platform='darwin 17' archs='x86_64' date='2021-06-16T06:31:22-0500'
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/63101#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list