https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100250
Bug ID: 100250 Summary: ICE related to -Wmaybe-uninitialized Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: muecker at gwdg dot de Target Milestone: --- Created attachment 50670 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50670&action=edit minimized test case (possibly also affects 11.0) xgcc (GCC) 12.0.0 20210424 (experimental) bcd77b7b9f35bd5b559ed593c3b3e346c1e6f364 $ ../gcc_build_clean/gcc/xgcc -B../gcc_build_clean/gcc/ -Wmaybe-uninitialized ice.c ice.c: In function ‘md_reshape2’: ice.c:34:9: warning: ‘<unknown>’ may be used uninitialized [-Wmaybe-uninitialized] 34 | md_permute2(D, order, dims2, strs2, idims); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ during GIMPLE pass: *early_warn_uninitialized ice.c:35:1: internal compiler error: Speicherzugriffsfehler 35 | } | ^ 0xe00f3f crash_signal ../../gcc/gcc/toplev.c:327 0x7f26a437583f ??? /build/glibc-vjB4T1/glibc-2.28/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 0x80db7c tree_check(tree_node*, char const*, int, char const*, tree_code) ../../gcc/gcc/tree.h:3352 0x80db7c attr_access::array_as_string[abi:cxx11](tree_node*) const ../../gcc/gcc/attribs.c:2391 0x101789d maybe_warn_pass_by_reference ../../gcc/gcc/tree-ssa-uninit.c:566 0x101789d warn_uninitialized_vars ../../gcc/gcc/tree-ssa-uninit.c:648 0x1017c70 execute_early_warn_uninitialized ../../gcc/gcc/tree-ssa-uninit.c:3089 0x1017c70 execute ../../gcc/gcc/tree-ssa-uninit.c:3124 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.