https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103038
--- Comment #6 from qinzhao at gcc dot gnu.org ---
just wondering why the ICE after my fix to PR102281. and found the reason:
Before the fix to PR102281, the IR before expansion phase is:
void test ()
{
<<< Unknown tree: offset_type >>>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103038
--- Comment #5 from CVS Commits ---
The master branch has been updated by Richard Biener :
https://gcc.gnu.org/g:268b43d2592c196ea101946d7063156a914b2713
commit r12-4845-g268b43d2592c196ea101946d7063156a914b2713
Author: Richard Biener
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103038
Richard Biener changed:
What|Removed |Added
Resolution|--- |FIXED
Status|ASSIGNED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103038
--- Comment #3 from Richard Biener ---
But yes, Andrews patch is also an improvement and avoids the issue.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103038
Richard Biener changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103038
--- Comment #1 from Andrew Pinski ---
I think this patch which fix the problem:
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 54f91f0149c..2d3ba07e541 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -8791,6 +8791,7 @@
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103038
Martin Liška changed:
What|Removed |Added
Priority|P3 |P1
Target Milestone|---