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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=95580

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
In fact, the same test case as for pr95580 triggers the C++ ICE as well:

$ gcc -O1 -S -Wall -fno-tree-dce -xc++
/src/gcc/trunk/gcc/testsuite/gcc.dg/pr95580.c
‘
during GIMPLE pass: uninit
In function ‘void foo(int)’:
Segmentation fault
    8 | foo (int x)
      | ^~~
0x15c3040 crash_signal
        /src/gcc/trunk/gcc/toplev.c:328
0x9559fc location_wrapper_p(tree_node const*)
        /src/gcc/trunk/gcc/tree.h:4004
0x955a79 tree_strip_any_location_wrapper(tree_node*)
        /src/gcc/trunk/gcc/tree.h:4016
0x1a04ede integer_onep(tree_node const*)
        /src/gcc/trunk/gcc/tree.c:2573
0xa9878e dump_expr
        /src/gcc/trunk/gcc/cp/error.c:2386
0xa9b4f4 expr_to_string(tree_node*)
        /src/gcc/trunk/gcc/cp/error.c:3109
0xa9f1e7 cp_printer
        /src/gcc/trunk/gcc/cp/error.c:4264
0x270616b pp_format(pretty_printer*, text_info*)
        /src/gcc/trunk/gcc/pretty-print.c:1475
0x26df21d diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        /src/gcc/trunk/gcc/diagnostic.c:1159
0x26df841 diagnostic_impl
        /src/gcc/trunk/gcc/diagnostic.c:1309
0x26e00bd warning_at(unsigned int, int, char const*, ...)
        /src/gcc/trunk/gcc/diagnostic.c:1446
0x1915da3 maybe_warn_operand
        /src/gcc/trunk/gcc/tree-ssa-uninit.c:431
0x1916782 warn_uninitialized_vars
        /src/gcc/trunk/gcc/tree-ssa-uninit.c:640
0x191b3e7 execute
        /src/gcc/trunk/gcc/tree-ssa-uninit.c:2936
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.

Reply via email to