https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117209
Bug ID: 117209
Summary: ICE: verify_gimple failed with asan.
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: iamanonymous.cs at gmail dot com
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
Target Milestone: ---
Maybe similar to bug 114687.
Program:
$ cat mutant.c
struct a {
char b;
} c();
int d;
__attribute__((returns_twice, pure)) int e();
void h() {
struct a *f;
int *g;
if (d)
c();
*g = e(*f);
}
Command Lines:
$ gcc -fsanitize=address mutant.c
mutant.c: In function 'h':
mutant.c:6:6: error: gimple_bb (stmt) is set to a wrong basic block
6 | void h() {
| ^
# .MEM_12 = VDEF <.MEM_3(ab)>
.ASAN_CHECK (7, g_8(D), 4, 4);
during GIMPLE pass: asan0
mutant.c:6:6: internal compiler error: verify_gimple failed
0x5071bcf diagnostic_context::report_diagnostic(diagnostic_info*)
???:0
0x50724a1 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, int, char const*, __va_list_tag (*) [1],
diagnostic_t)
???:0
0x50924c7 internal_error(char const*, ...)
???:0
0x1f8d1f9 verify_gimple_in_cfg(function*, bool, bool)
???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Godbolt link: https://godbolt.org/z/sPd5ePsK5