-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not return ancestor's components when calling
P_Aggregate_Params
This change fixes a bug where `P_Aggregate_Params` would return the ancestor's part components if called on an extended aggregate using the ``other`` designator. TN: V829-017
- Loading branch information
Showing
5 changed files
with
64 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
procedure Test is | ||
type Root is tagged record | ||
X : Integer := 1; | ||
end record; | ||
|
||
type Child is new Root with record | ||
Y : Integer := 2; | ||
end record; | ||
|
||
C : Child := (Root with others => <>); | ||
--% node.f_default_expr.p_aggregate_params | ||
D : Child := (Root'(X => 9) with others => <>); | ||
--% node.f_default_expr.p_aggregate_params | ||
E : Child := (Root'(X => 9) with Y => 4); | ||
--% node.f_default_expr.p_aggregate_params | ||
F : Child := (others => <>); | ||
--% node.f_default_expr.p_aggregate_params | ||
begin | ||
null; | ||
end Test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
driver: inline-playground | ||
input_sources: [recagg.adb] | ||
input_sources: [recagg.adb, test.adb] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
type: bugfix | ||
short_title: Fix ``P_Aggregate_Params`` property | ||
title: Do not return ancestor's part components when calling ``P_Aggregate_Params`` | ||
description: | | ||
This change fixes a bug where ``P_Aggregate_Params`` would return ancestor's | ||
part components if called on an extended aggregate using the ``other`` | ||
designator. | ||
date: 2022-09-09 |