[Bug c/94780] [8/9/10 Regression] ICE in walk_body at gcc/tree-nested.c:713 since r6-3632-gf6f69fb09c5f81df
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94780 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org CC||jakub at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c/94780] [8/9/10 Regression] ICE in walk_body at gcc/tree-nested.c:713 since r6-3632-gf6f69fb09c5f81df
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94780 Arseny Solokha changed: What|Removed |Added CC||asolokha at gmx dot com --- Comment #3 from Arseny Solokha --- Can it be caused by the same underlying issue as PR88134 (though I'm the only one who can reproduce the latter)? BTW, the only difference between the testcases, backends aside, is that nested 'unsigned int bar (int s) { return s;}'.
[Bug c/94780] [8/9/10 Regression] ICE in walk_body at gcc/tree-nested.c:713 since r6-3632-gf6f69fb09c5f81df
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94780 Richard Biener changed: What|Removed |Added Target Milestone|--- |8.5 Priority|P3 |P2 --- Comment #2 from Richard Biener --- It ICEs during ICEing: #1 0x014351c4 in convert_nonlocal_reference_op (tp=0x76d904e8, walk_subtrees=0x7fffd448, data=0x7fffd9e0) at ../../src/trunk/gcc/tree-nested.c:1062 1062 IDENTIFIER_POINTER (DECL_NAME (target_context)), (gdb) l 1057/* If none of the outer contexts is the target context, this means 1058 that the VAR or PARM_DECL is referenced in a wrong context. */ 1059if (!i) 1060 internal_error ("%s from %s referenced in %s", 1061 IDENTIFIER_POINTER (DECL_NAME (t)), 1062 IDENTIFIER_POINTER (DECL_NAME (target_context)), 1063 IDENTIFIER_POINTER (DECL_NAME (info->context))); 1064 1065x = lookup_field_for_decl (i, t, INSERT); 1066x = get_frame_field (info, target_context, x, >gsi); (gdb) p target_context $1 = target_context is also NULL(?) (gdb) p debug_tree (t) unit-size align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x76c56690 precision:32 min max pointer_to_this > used unsigned ignored SI x.c:10:8 size unit-size align:32 warn_if_not_align:0> $6 = void it's from the LHS of D.1944 = __builtin_ia32_stmxcsr (); and obviously the given rev. fails to set a proper context for the decl and also fails to add it to local_decls.
[Bug c/94780] [8/9/10 Regression] ICE in walk_body at gcc/tree-nested.c:713 since r6-3632-gf6f69fb09c5f81df
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94780 --- Comment #1 from Martin Liška --- Confirmed, started with r6-3632-gf6f69fb09c5f81df.
[Bug c/94780] [8/9/10 Regression] ICE in walk_body at gcc/tree-nested.c:713 since r6-3632-gf6f69fb09c5f81df
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94780 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org, ||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW Keywords||ice-on-valid-code Ever confirmed|0 |1 Summary|[9/10] internal compiler|[8/9/10 Regression] ICE in |error: Segmentation fault |walk_body at ||gcc/tree-nested.c:713 since ||r6-3632-gf6f69fb09c5f81df Known to work||5.4.0 Known to fail||10.0, 6.4.0 Last reconfirmed||2020-04-27