projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6f3233
)
[Ada] Default_Initial_Condition check done after extended return with init
author
Arnaud Charlet
<charlet@adacore.com>
Mon, 4 May 2020 08:56:52 +0000
(
04:56
-0400)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Mon, 6 Jul 2020 11:34:50 +0000
(07:34 -0400)
gcc/ada/
* par-ch6.adb (P_Return_Object_Declaration): Set
Has_Init_Expression flag.
gcc/ada/par-ch6.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/par-ch6.adb
b/gcc/ada/par-ch6.adb
index abf7d1052e34009a69dc90a27c0769020672739b..0821e68dde1ac0c410136b5d1d945559267d936b 100644
(file)
--- a/
gcc/ada/par-ch6.adb
+++ b/
gcc/ada/par-ch6.adb
@@
-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;