* [Bug tree-optimization/112831] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in type_has_mode_precision_p, at tree.h:6767
2023-12-03 14:38 [Bug tree-optimization/112831] New: ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in type_has_mode_precision_p, at tree.h:6767 shaohua.li at inf dot ethz.ch
@ 2023-12-03 17:15 ` fw at gcc dot gnu.org
2023-12-03 17:15 ` fw at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: fw at gcc dot gnu.org @ 2023-12-03 17:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112831
Florian Weimer <fw at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|fweimer at redhat dot com |fw at gcc dot gnu.org
--- Comment #1 from Florian Weimer <fw at gcc dot gnu.org> ---
For me, it ICEs on the previous commit as well.
Could it be a latent bug? I'm going to attach some valgrind output.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112831] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in type_has_mode_precision_p, at tree.h:6767
2023-12-03 14:38 [Bug tree-optimization/112831] New: ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in type_has_mode_precision_p, at tree.h:6767 shaohua.li at inf dot ethz.ch
2023-12-03 17:15 ` [Bug tree-optimization/112831] " fw at gcc dot gnu.org
@ 2023-12-03 17:15 ` fw at gcc dot gnu.org
2023-12-03 21:27 ` [Bug tree-optimization/112831] [14 Regression] " pinskia at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: fw at gcc dot gnu.org @ 2023-12-03 17:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112831
--- Comment #2 from Florian Weimer <fw at gcc dot gnu.org> ---
Created attachment 56776
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56776&action=edit
valgrind output
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112831] [14 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in type_has_mode_precision_p, at tree.h:6767
2023-12-03 14:38 [Bug tree-optimization/112831] New: ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in type_has_mode_precision_p, at tree.h:6767 shaohua.li at inf dot ethz.ch
2023-12-03 17:15 ` [Bug tree-optimization/112831] " fw at gcc dot gnu.org
2023-12-03 17:15 ` fw at gcc dot gnu.org
@ 2023-12-03 21:27 ` pinskia at gcc dot gnu.org
2023-12-03 21:29 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-03 21:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112831
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Target| |x86_64-linux-gnu
Summary|ICE: tree check: expected |[14 Regression] ICE: tree
|class 'type', have |check: expected class
|'exceptional' (error_mark) |'type', have 'exceptional'
|in |(error_mark) in
|type_has_mode_precision_p, |type_has_mode_precision_p,
|at tree.h:6767 |at tree.h:6767
Target Milestone|--- |14.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112831] [14 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in type_has_mode_precision_p, at tree.h:6767
2023-12-03 14:38 [Bug tree-optimization/112831] New: ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in type_has_mode_precision_p, at tree.h:6767 shaohua.li at inf dot ethz.ch
` (2 preceding siblings ...)
2023-12-03 21:27 ` [Bug tree-optimization/112831] [14 Regression] " pinskia at gcc dot gnu.org
@ 2023-12-03 21:29 ` pinskia at gcc dot gnu.org
2023-12-04 8:41 ` rguenth at gcc dot gnu.org
2023-12-04 9:44 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-03 21:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112831
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2023-12-03
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, reduced slightly more:
```
int a, b;
char c;
void e() {
for (; c; c++) {
int t;
b = 0;
for (; b <= 7; b++)
;
for (; (short)(t + b) + a; a++)
;
}
}
```
0x1ace576 generic_simplify_CONVERT_EXPR(unsigned int, tree_code, tree_node*,
tree_node*)
???:0
0x1042d3f fold_unary_loc(unsigned int, tree_code, tree_node*, tree_node*)
???:0
0x10443cc fold_build1_loc(unsigned int, tree_code, tree_node*, tree_node*)
???:0
0x1529c9d analyze_scalar_evolution(loop*, tree_node*)
???:0
0x15e5575 estimate_numbers_of_iterations(loop*)
???:0
0x15e83b9 scev_probably_wraps_p(tree_node*, tree_node*, tree_node*, gimple*,
loop*, bool)
???:0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112831] [14 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in type_has_mode_precision_p, at tree.h:6767
2023-12-03 14:38 [Bug tree-optimization/112831] New: ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in type_has_mode_precision_p, at tree.h:6767 shaohua.li at inf dot ethz.ch
` (3 preceding siblings ...)
2023-12-03 21:29 ` pinskia at gcc dot gnu.org
@ 2023-12-04 8:41 ` rguenth at gcc dot gnu.org
2023-12-04 9:44 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-12-04 8:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112831
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Dup of that other bug I guess.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112831] [14 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in type_has_mode_precision_p, at tree.h:6767
2023-12-03 14:38 [Bug tree-optimization/112831] New: ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in type_has_mode_precision_p, at tree.h:6767 shaohua.li at inf dot ethz.ch
` (4 preceding siblings ...)
2023-12-04 8:41 ` rguenth at gcc dot gnu.org
@ 2023-12-04 9:44 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-12-04 9:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112831
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
dup
*** This bug has been marked as a duplicate of bug 112827 ***
^ permalink raw reply [flat|nested] 7+ messages in thread