Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
965dbd5c
Commit
965dbd5c
authored
May 06, 2009
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert previous change.
From-SVN: r147166
parent
89522556
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
gcc/ada/sem_aggr.adb
+14
-8
No files found.
gcc/ada/sem_aggr.adb
View file @
965dbd5c
...
...
@@ -3071,20 +3071,26 @@ package body Sem_Aggr is
Parent_Typ_List := New_Elmt_List;
-- If this is an extension aggregate, the component list must
-- include all components that are not in the given ancestor
--
type. Otherwise, the component list must include components
--
of all
ancestors, starting with the root.
-- include all components that are not in the given ancestor
type.
--
Otherwise, the component list must include components of all
-- ancestors, starting with the root.
if Nkind (N) = N_Extension_Aggregate then
-- Handle case where ancestor part is a C++ constructor. In
-- this case it must be a function returning a class-wide type.
-- If the ancestor part is a C++ constructor, then it must be a
-- function returning a class-wide type, so
check
that here.
-- function returning a class-wide type, so
handle
that here.
pragma Assert
(not Is_CPP_Constructor_Call (Ancestor_Part (N))
or else Is_Class_Wide_Type (Etype (Ancestor_Part (N))));
if Is_CPP_Constructor_Call (Ancestor_Part (N)) then
pragma Assert
(Is_Class_Wide_Type (Etype (Ancestor_Part (N))));
Root_Typ := Root_Type (Etype (Ancestor_Part (N)));
Root_Typ := Base_Type (Etype (Ancestor_Part (N)));
-- Normal case, not a C++ constructor
else
Root_Typ := Base_Type (Etype (Ancestor_Part (N)));
end if;
else
Root_Typ := Root_Type (Typ);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment