https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92079
Bug ID: 92079
Summary: ice in operation_could_trap_p, at tree-eh.c:2528
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Created attachment 47028
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47028&action=edit
C source code
For the attached C code, compiled by recent trunk and compiler flag -O2,
does this:
Python/_warnings.c: In function ‘setup_context’:
Python/_warnings.c:753:13: internal compiler error: in operation_could_trap_p,
at tree-eh.c:2528
753 | ascii_lower(PyUnicode_READ(kind, data, len-1)) == 'c')
| ^~~~~~~~~~~
gcc -g -O3 -Wall -Wextra -pthread -c -fno-strict-aliasing -Wno-unused-result
-Wsign-compare -DNDEBUG -g -O3 -Wall -std=c99 -Wextra -Wno-unused-result
-Wno-unused-parameter -Wno-missing-field-initializers -Wno-cast-function-type
-Werror=implicit-function-declaration -I. -I./Include -DPy_BUILD_CORE -o
Python/Python-ast.o Python/Python-ast.c
0x6af319 operation_could_trap_p(tree_code, bool, bool, tree_node*)
../../trunk/gcc/tree-eh.c:2528
0x6af319 operation_could_trap_p(tree_code, bool, bool, tree_node*)
../../trunk/gcc/tree-eh.c:2518
0x6af319 tree_could_trap_p(tree_node*)
../../trunk/gcc/tree-eh.c:2635