mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-24 08:50:26 +08:00
sem_ch6.adb (Analyze_Subprogram_Body_Helper): Ensure that the input body is a subprogram body before trying to determine...
2017-01-13 Hristian Kirtchev <kirtchev@adacore.com> * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Ensure that the input body is a subprogram body before trying to determine whether it denoted an expression function. Note that subprogram body stubs cannot denote expression functions. From-SVN: r244421
This commit is contained in:
parent
804ec349d0
commit
36be008200
@ -1,3 +1,10 @@
|
||||
2017-01-13 Hristian Kirtchev <kirtchev@adacore.com>
|
||||
|
||||
* sem_ch6.adb (Analyze_Subprogram_Body_Helper):
|
||||
Ensure that the input body is a subprogram body before trying to
|
||||
determine whether it denoted an expression function. Note that
|
||||
subprogram body stubs cannot denote expression functions.
|
||||
|
||||
2017-01-13 Gary Dismukes <dismukes@adacore.com>
|
||||
|
||||
* bindgen.adb, sem_ch6.adb, binde.adb, exp_ch3.adb: Minor reformatting
|
||||
|
@ -3503,6 +3503,7 @@ package body Sem_Ch6 is
|
||||
-- freezing.
|
||||
|
||||
if Has_Completion (Spec_Id)
|
||||
and then Nkind (N) = N_Subprogram_Body
|
||||
and then Was_Expression_Function (N)
|
||||
then
|
||||
Freeze_Expr_Types (Spec_Id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user