[Bug c++/119778] [14/15/15 regression] -Wuninitialized crashed with longjmp/setjmp

2025-04-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119778

Sam James  changed:

   What|Removed |Added

  Known to fail||13.3.1, 14.2.1, 15.0
  Known to work||11.5.0, 12.4.1

--- Comment #2 from Sam James  ---
```
$ g++ a.cxx -O2 -Wall -O2
during GIMPLE pass: uninit
a.cxx: In member function ‘void tac::f()’:
a.cxx:10:10: internal compiler error: Segmentation fault
   10 | void f() {
  |  ^
0x59bdb61cd886 internal_error(char const*, ...)
   
/usr/src/debug/sys-devel/gcc-15.0./gcc-15.0./gcc/diagnostic-global-context.cc:517
0x59bdb59619c2 crash_signal
/usr/src/debug/sys-devel/gcc-15.0./gcc-15.0./gcc/toplev.cc:323
0x78c18321fdbf ???
   
/usr/src/debug/sys-libs/glibc-2.41./glibc-2.41./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x59bdb5640fc0 gimple_code(gimple const*)
/usr/src/debug/sys-devel/gcc-15.0./gcc-15.0./gcc/gimple.h:1844
0x59bdb5640fc0 predicate::init_from_control_deps(vec const*, unsigned int, bool)
   
/usr/src/debug/sys-devel/gcc-15.0./gcc-15.0./gcc/gimple-predicate-analysis.cc:1818
0x59bdb6ecc244 uninit_analysis::init_use_preds(predicate&, basic_block_def*,
basic_block_def*)
   
/usr/src/debug/sys-devel/gcc-15.0./gcc-15.0./gcc/gimple-predicate-analysis.cc:2045
0x59bdb6ecbf6e uninit_analysis::is_use_guarded(gimple*, basic_block_def*,
gphi*, unsigned int, hash_set >*)
   
/usr/src/debug/sys-devel/gcc-15.0./gcc-15.0./gcc/gimple-predicate-analysis.cc:2200
0x59bdb6ecbec3 uninit_analysis::is_use_guarded(gimple*, basic_block_def*,
gphi*, unsigned int)
   
/usr/src/debug/sys-devel/gcc-15.0./gcc-15.0./gcc/gimple-predicate-analysis.cc:2249
0x59bdb6ecbb4e find_uninit_use
   
/usr/src/debug/sys-devel/gcc-15.0./gcc-15.0./gcc/tree-ssa-uninit.cc:1273
0x59bdb67cbb03 warn_uninitialized_phi
   
/usr/src/debug/sys-devel/gcc-15.0./gcc-15.0./gcc/tree-ssa-uninit.cc:1343
0x59bdb67cbb03 execute_late_warn_uninitialized
   
/usr/src/debug/sys-devel/gcc-15.0./gcc-15.0./gcc/tree-ssa-uninit.cc:1462
0x59bdb67cbb03 execute
   
/usr/src/debug/sys-devel/gcc-15.0./gcc-15.0./gcc/tree-ssa-uninit.cc:1479
```

[Bug c++/119778] [14/15/15 regression] -Wuninitialized crashed with longjmp/setjmp

2025-04-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119778

Sam James  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
Summary|gcc gimple crashes on some  |[14/15/15 regression]
   |setjmp/longjmp code |-Wuninitialized crashed
   ||with longjmp/setjmp

--- Comment #1 from Sam James  ---
Workaround is -Wno-uninitialized.