[Ada] Default_Initial_Condition check done after extended return with init
gcc/ada/ * par-ch6.adb (P_Return_Object_Declaration): Set Has_Init_Expression flag.
This commit is contained in:
parent
e6f323372e
commit
37e43fe13e
@ -1856,6 +1856,7 @@ package body Ch6 is
|
||||
if Token = Tok_Colon_Equal then
|
||||
Scan; -- past :=
|
||||
Set_Expression (Decl_Node, P_Expression_No_Right_Paren);
|
||||
Set_Has_Init_Expression (Decl_Node);
|
||||
end if;
|
||||
|
||||
return Decl_Node;
|
||||
|
Loading…
Reference in New Issue
Block a user