https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89786
Bug ID: 89786
Summary: ice in add_expr, at tree.c:7767
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
I just tried out some Ada testsuite code:
This works:
$ ~/gcc/results/bin/gcc -c -I./gnat.dg/ -I- ./gnat.dg/slice7.adb
slice7.adb:27:03: warning: variable "Obj" is read but never assigned
$
This doesn't:
$ ~/gcc/results/bin/gcc -c -I./gnat.dg/ -O2 -I- ./gnat.dg/slice7.adb
slice7.adb:27:03: warning: variable "Obj" is read but never assigned
+===========================GNAT BUG DETECTED==============================+
| 20190319 (experimental) (x86_64-pc-linux-gnu) GCC error: |
| in add_expr, at tree.c:7767 |
| Error detected around ./gnat.dg/slice7.adb:35:3
The problem seems to occur sometime before revision 269500.
slice7.adb is from the gcc/testsuite directory.