https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104029
Bug ID: 104029 Summary: internal compiler error with -fanalyzer-checker=taint Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: urs at akk dot org Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Build: x86_64-pc-linux-gnu Created attachment 52191 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52191&action=edit preprocessed file gcc-12 (GCC) 12.0.0 20220114 (experimental) up to and incl. commit de196e5dd8ea4d0ed01a8c265afdd3676e27545b configured with --program-suffix=-12 --enable-languages=c,lto --enable-lto --disable-multilib on x86_64-pc-linux-gnu errors out when using gcc-12 -DHAVE_CONFIG_H -I. -I../include -DLOCALEDIR=\"/usr/share/locale\" -DDEBUG -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -g -std=c11 -O2 -Wextra -Wpedantic -pipe -Wall -Winline -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast -Wnested-externs -Wcast-align -Wpointer-arith -Waggregate-return -Wcast-qual -Wwrite-strings -Wundef -Wpacked -Wfloat-equal -Wunused-macros -Wold-style-definition -Winit-self -Wmissing-include-dirs -Wlogical-op -Wjump-misses-init -Wformat=2 -Wshift-overflow=2 -Wnull-dereference -Wduplicated-cond -Walloc-zero -Walloca -Wstringop-overflow=2 -Wduplicated-branches -Wno-format-nonliteral -Wno-stringop-truncation -Wno-format-truncation -fno-diagnostics-color -fdiagnostics-generate-patch -fanalyzer -fanalyzer-checker=taint with compiling heapsort.o during IPA pass: analyzer ./heapsort.c: In function ‘heapsort’: ./heapsort.c:169:15: internal compiler error: in alt_get_inherited_state, at analyzer/sm-taint.cc:652 169 | abase = (char *)vbase - size; | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~