[Bug tree-optimization/93845] [10 regression] ICE in verify_sra_access_forest, at tree-sra.c:2358
dimhen at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Feb 20 08:44:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93845
--- Comment #1 from Dmitry G. Dyachenko <dimhen at gmail dot com> ---
'-Wall -Wextra -O3' free variant
$ cat x.ii
struct g;
struct h {
g *operator->();
};
class i {
void *a;
int b;
public:
template <typename f> f j() { return *static_cast<f *>(this); }
};
struct k : i {};
struct l : k {};
struct m {
i n();
i o(l, l, int);
};
struct g {
void m_fn4(k);
};
h a;
i b;
i m::n() {
l c, d, e = o(d, c, 0).j<l>();
a->m_fn4(e);
return b;
}
$ ~/arch-gcc/r10-6309/bin/g++ -fpreprocessed -fchecking=1 -O3 -Wall -Wextra -c
x.ii
$ $ ~/arch-gcc/r10-6723/bin/g++ -fpreprocessed -fchecking=1 -O -c x.ii
during GIMPLE pass: esra
x.ii: In member function ‘i m::n()’:
x.ii:27:1: internal compiler error: in verify_sra_access_forest, at
tree-sra.c:2358
27 | }
| ^
0x817afd verify_sra_access_forest(access*)
/home/dimhen/src/gcc_current/gcc/tree-sra.c:2358
0x1334bca verify_all_sra_access_forests()
/home/dimhen/src/gcc_current/gcc/tree-sra.c:2403
0x1339910 analyze_all_variable_accesses
/home/dimhen/src/gcc_current/gcc/tree-sra.c:3414
0x1339e31 perform_intra_sra
/home/dimhen/src/gcc_current/gcc/tree-sra.c:4468
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.
More information about the Gcc-bugs
mailing list