https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96659
Bug ID: 96659 Summary: error: cast from 'const ana::region*' to 'long int' loses precision in store.h Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: trass3r at gmail dot com Target Milestone: --- x86_64-w64-mingw32-g++ -fno-PIE -c -O3 -g -pipe -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -fno-common -DHAVE_CONFIG_H -I. -Ianalyzer -I/mnt/host/sources/gcc-master/gcc -I/mnt/host/sources/gcc-master/gcc/analyzer -I/mnt/host/sources/gcc-master/gcc/../include -I/mnt/host/sources/gcc-master/gcc/../libcpp/include -I/mnt/host/buildWin64/prerequisites/gmp-6.2.0/include -I/mnt/host/buildWin64/prerequisites/mpfr-4.0.2/include -I/mnt/host/buildWin64/prerequisites/mpc-1.1.0/include -I/mnt/host/sources/gcc-master/gcc/../libdecnumber -I/mnt/host/sources/gcc-master/gcc/../libdecnumber/dpd -I../libdecnumber -I/mnt/host/sources/gcc-master/gcc/../libbacktrace -I/mnt/host/buildWin64/prerequisites/isl-0.22.1/include -I/mnt/host/buildWin64/prerequisites/zlib-1.2.11/include -pipe -O3 -g0 -fno-plt -fno-pie -no-pie -fno-pic -march=haswell -I/mnt/host/buildWin64/prerequisites/libiconv-1.16/include -o analyzer/checker-path.o -MT analyzer/checker-path.o -MMD -MP -MF analyzer/.deps/checker-path.TPo /mnt/host/sources/gcc-master/gcc/analyzer/checker-path.cc /mnt/host/sources/gcc-master/gcc/analyzer/store.h:271:47: error: cast from 'const ana::region*' to 'long int' loses precision [-fpermissive] 271 | return (binding_key::impl_hash () ^ (long)m_region); | ^~~~~~~~ https://github.com/Trass3r/bleeding-edge-toolchain/runs/992134193