[Bug c/110682] [12/13/14 Regression] ICE: internal compiler error: in gimplify_expr after error

2024-03-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110682

--- Comment #5 from Andrew Pinski  ---
Patch posted:
https://gcc.gnu.org/pipermail/gcc-patches/2024-March/648270.html

[Bug c/110682] [12/13/14 Regression] ICE: internal compiler error: in gimplify_expr after error

2024-03-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110682

Jakub Jelinek  changed:

   What|Removed |Added

   Priority|P1  |P2
 CC||jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek  ---
GCC 12-13 has been released with this bug, so P2.

[Bug c/110682] [12/13/14 Regression] ICE: internal compiler error: in gimplify_expr after error

2024-03-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110682

--- Comment #3 from Andrew Pinski  ---
This fixes the ICE:
```
[apinski@xeond2 gcc]$ git diff
diff --git a/gcc/gimplify.cc b/gcc/gimplify.cc
index 6ebca964cb2..0f43324fb35 100644
--- a/gcc/gimplify.cc
+++ b/gcc/gimplify.cc
@@ -17681,7 +17681,11 @@ gimplify_expr (tree *expr_p, gimple_seq *pre_p,
gimple_seq *post_p,
   save_expr = *expr_p;

   /* Die, die, die, my darling.  */
-  if (error_operand_p (save_expr))
+  if (error_operand_p (save_expr)
+ /* The above strip useless type conversion might not strip out
+a conversion from an error so handle that case here.  */
+ || (TREE_CODE (save_expr) == NON_LVALUE_EXPR
+ && error_operand_p (TREE_OPERAND (save_expr, 0
{
  ret = GS_ERROR;
  break;

```

I will submit it tomorrow once I test it fully.

[Bug c/110682] [12/13/14 Regression] ICE: internal compiler error: in gimplify_expr after error

2024-03-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110682

Andrew Pinski  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |pinskia at gcc dot 
gnu.org
 Status|NEW |ASSIGNED

--- Comment #2 from Andrew Pinski  ---
I will take a look

[Bug c/110682] [12/13/14 Regression] ICE: internal compiler error: in gimplify_expr after error

2024-03-07 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110682

Jeffrey A. Law  changed:

   What|Removed |Added

 CC||law at gcc dot gnu.org
   Priority|P3  |P1

[Bug c/110682] [12/13/14 Regression] ICE: internal compiler error: in gimplify_expr after error

2023-12-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110682

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |12.4
  Known to work||11.1.0, 11.4.0
  Known to fail||12.1.0

[Bug c/110682] [12/13/14 Regression] ICE: internal compiler error: in gimplify_expr after error

2023-11-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110682

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2023-11-13
 Ever confirmed|0   |1
Summary|GCC, ICE: internal compiler |[12/13/14 Regression] ICE:
   |error: in gimplify_expr, at |internal compiler error: in
   |gimplify.cc:16771   |gimplify_expr after error

--- Comment #1 from Andrew Pinski  ---
Confirmed.