https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108383
Peter Damianov <peter0x44 at disroot dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |peter0x44 at disroot dot org --- Comment #7 from Peter Damianov <peter0x44 at disroot dot org> --- I believe I'm encountering this same bug with cppcheck, when building with -flto -Os. during GIMPLE pass: alias lib/check64bit.h: In member function 'classInfo': lib/check64bit.h:81:17: internal compiler error: in binds_to_current_def_p, at symtab.cc:2497 81 | std::string classInfo() const override { | ^ libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source (by using -freport-bug). See <https://gcc.gnu.org/bugs/> for instructions. This is with gcc 13.2.0 ext := $(shell find externals -mindepth 1 -type d) src := $(shell find cli lib externals -name '*.cpp') obj := $(src:.cpp=.o) CXXFLAGS := -w -Os -Ilib $(addprefix -I,$(ext)) -flto=auto cppcheck.exe: $(obj) x86_64-w64-mingw32-g++ -s -o $@ $(obj) -lshlwapi -flto=auto -Os -s Place this makefile in the root of the repo, and run it. (there is an existing one that didn't work for me, hence I named it "cppcheck.mak") make -f cppcheck.mak Hope this helps!