The compiler should be allowing formal functions to be defaulted by
an expression when the core extensions are enabled, but it was
requiring all extensions to be enabled.
gcc/ada/ChangeLog:
* par-ch12.adb (P_Formal_Subprogram_Declaration): Pass True for
the Is_Core_Extension parameter on call to Error_Msg_GNAT_Extension.
elsif Token = Tok_Left_Paren then
Error_Msg_GNAT_Extension
- ("expression default for formal subprograms", Token_Ptr);
+ ("expression default for formal subprograms", Token_Ptr,
+ Is_Core_Extension => True);
if Nkind (Spec_Node) = N_Function_Specification then
Scan; -- past "("