[Bug c/109598] [12/13/14 Regression] ICE: tree check: expected array_type, have error_mark in array_ref_low_bound, at tree.cc

2023-07-23 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109598

Roger Sayle  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED
 CC||roger at nextmovesoftware dot 
com

--- Comment #4 from Roger Sayle  ---
This issue has been fixed on mainline (for GCC 14), by the patch for PR 110699.

[Bug c/109598] [12/13/14 Regression] ICE: tree check: expected array_type, have error_mark in array_ref_low_bound, at tree.cc

2023-04-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109598

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |14.0
Summary|ICE: tree check: expected   |[12/13/14 Regression] ICE:
   |array_type, have error_mark |tree check: expected
   |in array_ref_low_bound, at  |array_type, have error_mark
   |tree.cc |in array_ref_low_bound, at
   ||tree.cc

--- Comment #3 from Andrew Pinski  ---
(In reply to Martin Liška from comment #2)
> Started with r12-3278-g823685221de986.

I figured that caused this issue. 

> it would be nice if the frontend wouldn't emit

If the C front-end had its own AST, then it would be easier but it does not.
Maybe we should not gimplify things if there was an error (from the front-end);
that might help.