https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97268
Bug ID: 97268
Summary: Segfault on 11.0.0 20200930
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ext-gcc at burakarslan dot com
Target Milestone: ---
Created attachment 49297
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49297&action=edit
testcase
The following code seems to crash on gcc HEAD:
https://wandbox.org/permlink/O9ZzBf1aG9tTwTAl
It also doesn't compile with gcc 9.x or 10.x while clang 10 seems to have no
problems for reasons unknown to me.
Output:
```
during GIMPLE pass: *early_warn_uninitialized
prog.cc: In constructor 'BetterObject::BetterObject(const char*, int,
Handle&) [with bool CACHED = true]':
prog.cc:63:1: internal compiler error: Segmentation fault
63 | }
| ^
0xc2495f crash_signal
../../source/gcc/toplev.c:329
0xceb9ba ao_ref_init_from_ptr_and_size(ao_ref*, tree_node*, tree_node*)
../../source/gcc/tree-ssa-alias.c:747
0xde0352 maybe_warn_pass_by_reference
../../source/gcc/tree-ssa-uninit.c:529
0xde0352 warn_uninitialized_vars
../../source/gcc/tree-ssa-uninit.c:643
0xde0660 execute_early_warn_uninitialized
../../source/gcc/tree-ssa-uninit.c:3018
0xde0660 execute
../../source/gcc/tree-ssa-uninit.c:3053
```