Opened 4 years ago

#62192 assigned defect

clucene @2.3.3.4_2: build fails with clang-9.0: error: constant expression evaluates to 18446744073709551615 which cannot be narrowed to type 'int64_t'

Reported by: kencu (Ken) Owned by: dinh.viet.hoa@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: clucene

Description

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_clucene/clucene/work/clucene-core-2.3.3.4/src/core/CLucene/queryParser/QueryParserTokenManager.cpp:18:65: error: constant expression evaluates to 18446744073709551615 which cannot be narrowed to type 'int64_t' (aka 'long long') [-Wc++11-narrowing]
:info:build const int64_t QueryParserTokenManager::jjbitVec2[]={0x0L, 0x0L, _ILONGLONG(0xffffffffffffffff), _ILONGLONG(0xffffffffffffffff)};
:info:build                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_clucene/clucene/work/clucene-core-2.3.3.4/src/shared/CLucene/_clucene-config.h:57:23: note: expanded from macro '_ILONGLONG'
:info:build #define _ILONGLONG(x) x ## LL
:info:build                       ^~~~~~~
:info:build <scratch space>:140:1: note: expanded from here
:info:build 0xffffffffffffffffLL

succeeds with clang-5.0

Attachments (1)

clucene-fail-snowleopard.log (208.1 KB) - added by kencu (Ken) 4 years ago.

Download all attachments as: .zip

Change History (1)

Changed 4 years ago by kencu (Ken)

Note: See TracTickets for help on using tickets.