projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59d5d8c
)
[Ada] Crash on overriding of an abstract primitive on an incomplete type
author
Arnaud Charlet
<charlet@adacore.com>
Mon, 8 Mar 2021 12:11:32 +0000
(07:11 -0500)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Thu, 17 Jun 2021 14:32:17 +0000
(10:32 -0400)
gcc/ada/
* sem_ch3.adb (Check_Ops_From_Incomplete_Type): Protect against
no Primitive_Operations.
gcc/ada/sem_ch3.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/sem_ch3.adb
b/gcc/ada/sem_ch3.adb
index
6720d41
..
d807b10
100644
(file)
--- a/
gcc/ada/sem_ch3.adb
+++ b/
gcc/ada/sem_ch3.adb
@@
-3072,6
+3072,7
@@
package body Sem_Ch3 is
and then Ekind (Prev) = E_Incomplete_Type
and then Is_Tagged_Type (Prev)
and then Is_Tagged_Type (T)
+ and then Present (Primitive_Operations (Prev))
then
Elmt := First_Elmt (Primitive_Operations (Prev));
while Present (Elmt) loop