https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118024

--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
```
during GIMPLE pass: waccess
vis.c: In function ‘stravis.strub.0’:
vis.c:217:1: internal compiler error: tree check: expected tree_list, have
identifier_node in matching_alloc_calls_p, at gimple-ssa-warn-access.cc:1983
==1637562== Invalid free() / delete / delete[] / realloc()
==1637562==    at 0x484CED9: operator delete(void*, unsigned long)
(vg_replace_malloc.c:1181)
==1637562==    by 0x23B7E7F: diagnostic_context::finish() (diagnostic.cc:426)
==1637562==    by 0x110B11:
diagnostic_context::action_after_output(diagnostic_t) [clone .cold]
(diagnostic.cc:909)
==1637562==    by 0x1B27FB9:
diagnostic_context::report_diagnostic(diagnostic_info*) (diagnostic.cc:1490)
==1637562==    by 0x1B27C12:
diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*,
diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t) (diag
nostic.cc:1596)
==1637562==    by 0x1A436F7: internal_error(char const*, ...)
(diagnostic-global-context.cc:517)
==1637562==    by 0x12793E6: tree_check_failed(tree_node const*, char const*,
int, char const*, ...) (tree.cc:9038)
==1637562==    by 0x92B39E: UnknownInlinedFun (tree.h:3669)
==1637562==    by 0x92B39E: matching_alloc_calls_p(tree_node*, tree_node*)
[clone .lto_priv.0] [clone .cold] (gimple-ssa-warn-access.cc:1983)
==1637562==    by 0x1DCF6D2: UnknownInlinedFun (gimple-ssa-warn-access.cc:2019)
==1637562==    by 0x1DCF6D2: UnknownInlinedFun (gimple-ssa-warn-access.cc:3777)
==1637562==    by 0x1DCF6D2: UnknownInlinedFun (gimple-ssa-warn-access.cc:4387)
==1637562==    by 0x1DCF6D2: UnknownInlinedFun (gimple-ssa-warn-access.cc:4464)
==1637562==    by 0x1DCF6D2: (anonymous
namespace)::pass_waccess::execute(function*) [clone .lto_priv.0]
(gimple-ssa-warn-access.cc:4801)
==1637562==    by 0x18453B: execute_one_pass(opt_pass*) [clone .cold]
(passes.cc:2659)
==1637562==    by 0x1CA71EB: execute_pass_list_1(opt_pass*) (passes.cc:2768)
==1637562==    by 0x1CA6AD8: execute_pass_list(function*, opt_pass*)
(passes.cc:2779)
==1637562==  Address 0x1ffeffede0 is on thread 1's stack
==1637562==  in frame #8, created by (anonymous
namespace)::pass_waccess::execute(function*) [clone .lto_priv.0]
(gimple-ssa-warn-access.cc:4772)
==1637562==
0x1a436f7 internal_error(char const*, ...)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:517
0x12793e6 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree.cc:9038
0x92b39e tree_check(tree_node*, char const*, int, char const*, tree_code)
        /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree.h:3669
0x92b39e matching_alloc_calls_p
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/gimple-ssa-warn-access.cc:1983
0x1dcf6d2 matching_alloc_calls_p
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/gimple-ssa-warn-access.cc:2019
0x1dcf6d2 maybe_check_dealloc_call
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/gimple-ssa-warn-access.cc:3777
0x1dcf6d2 check_call
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/gimple-ssa-warn-access.cc:4387
0x1dcf6d2 check_block
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/gimple-ssa-warn-access.cc:4464
0x1dcf6d2 execute
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/gimple-ssa-warn-access.cc:4801
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

Reply via email to