https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97262
Bug ID: 97262 Summary: rror: cast from 'const ana::region*' to 'long int' loses precision Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: euloanty at live dot com Target Milestone: --- c/../libbacktrace -I/mingw64/include -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -o analyzer/pending-diagnostic.o -MT analyzer/pending-diagnostic.o -MMD -MP -MF analyzer/.deps/pending-diagnostic.TPo ../../gcc-git/gcc/analyzer/pending-diagnostic.cc In file included from ../../gcc-git/gcc/analyzer/checker-path.cc:52: ../../gcc-git/gcc/analyzer/store.h: In member function 'hashval_t ana::symbolic_binding::hash() const': ../../gcc-git/gcc/analyzer/store.h:272:41: error: cast from 'const ana::region*' to 'long int' loses precision [-fpermissive] 272 | return (binding_key::impl_hash () ^ (long)m_region); | ^~~~~~~~~~~~~~ In file included from ../../gcc-git/gcc/analyzer/engine.cc:45: ../../gcc-git/gcc/analyzer/store.h: In member function 'hashval_t ana::symbolic_binding::hash() const': ../../gcc-git/gcc/analyzer/store.h:272:41: error: cast from 'const ana::region*' to 'long int' loses precision [-fpermissive] 272 | return (binding_key::impl_hash () ^ (long)m_region); | ^~~~~~~~~~~~~~ In file included from ../../gcc-git/gcc/analyzer/diagnostic-manager.cc:48: ../../gcc-git/gcc/analyzer/store.h: In member function 'hashval_t ana::symbolic_binding::hash() const': ../../gcc-git/gcc/analyzer/store.h:272:41: error: cast from 'const ana::region*' to 'long int' loses precision [-fpermissive] 272 | return (binding_key::impl_hash () ^ (long)m_region); | ^~~~~~~~~~~~~~ make[2]: *** [Makefile:1123: analyzer/checker-path.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from ../../gcc-git/gcc/analyzer/constraint-manager.cc:47: ../../gcc-git/gcc/analyzer/store.h: In member function 'hashval_t ana::symbolic_binding::hash() const': ../../gcc-git/gcc/analyzer/store.h:272:41: error: cast from 'const ana::region*' to 'long int' loses precision [-fpermissive] 272 | return (binding_key::impl_hash () ^ (long)m_region); | ^~~~~~~~~~~~~~ make[2]: *** [Makefile:1123: analyzer/constraint-manager.o] Error 1 make[2]: *** [Makefile:1123: analyzer/diagnostic-manager.o] Error 1 make[2]: *** [Makefile:1123: analyzer/engine.o] Error 1 rm gfdl.pod gcc.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod gpl.pod cpp.pod gcov.pod lto-dump.pod make[2]: Leaving directory '/home/unlvs/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/gcc' make[1]: *** [Makefile:4408: all-gcc] Error 2 make[1]: Leaving directory '/home/unlvs/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32' make: *** [Makefile:971: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...