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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.0
             Status|WAITING                     |NEW
            Summary|Segfault on 11.0.0 20200930 |11 Regression] Segfault on
                   |                            |11.0.0 20200930
                 CC|                            |msebor at gcc dot gnu.org

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
OK, confirmed.  It's -Wextra that triggers the following for me:

during GIMPLE pass: *early_warn_uninitialized
t.C: In constructor 'BetterObject<CACHED>::BetterObject(const char*, int,
Handle&) [with bool CACHED = true]':
t.C:63:1: internal compiler error: in gimple_call_arg, at gimple.h:3256
   63 | }
      | ^
0x1a61d17 gimple_call_arg
        /home/rguenther/src/gcc3/gcc/gimple.h:3256
0x1a61d6d gimple_call_arg
        /home/rguenther/src/gcc3/gcc/gimple.h:3264
0x1a63c4d maybe_warn_pass_by_reference
        /home/rguenther/src/gcc3/gcc/tree-ssa-uninit.c:526
0x1a6434d warn_uninitialized_vars
        /home/rguenther/src/gcc3/gcc/tree-ssa-uninit.c:643
0x1a693d9 execute_early_warn_uninitialized
        /home/rguenther/src/gcc3/gcc/tree-ssa-uninit.c:3018
0x1a6944c execute
        /home/rguenther/src/gcc3/gcc/tree-ssa-uninit.c:3053
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.

where on a stmt

Object<true>::Object (_2, _3);

we try to access argument 3.  Not sure how readwrite attributes ended up there,
I see them on some libstdc++ functions only.  Maybe some bad sharing
of function type trees?

CCing Martin.

Reply via email to