aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/exp_ch4.adb7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ada/exp_ch4.adb b/gcc/ada/exp_ch4.adb
index 18ec712..106305f 100644
--- a/gcc/ada/exp_ch4.adb
+++ b/gcc/ada/exp_ch4.adb
@@ -443,8 +443,11 @@ package body Exp_Ch4 is
begin
if Present (Eq) then
if Is_Abstract_Subprogram (Eq) then
- return Make_Raise_Program_Error (Loc,
- Reason => PE_Explicit_Raise);
+ return Result : constant Node_Id :=
+ Make_Raise_Program_Error (Loc, Reason => PE_Explicit_Raise)
+ do
+ Set_Etype (Result, Etype (Eq));
+ end return;
else
return