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
42aa5ada
Commit
42aa5ada
authored
Dec 13, 2010
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
foo
From-SVN: r167769
parent
f0c2df63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
gcc/cp/semantics.c
+14
-3
No files found.
gcc/cp/semantics.c
View file @
42aa5ada
...
...
@@ -5485,9 +5485,20 @@ build_data_member_initialization (tree t, VEC(constructor_elt,gc) **vec)
init
=
unshare_expr
(
TREE_OPERAND
(
t
,
1
));
if
(
TREE_CODE
(
member
)
==
INDIRECT_REF
)
{
/* Don't put out anything for an empty base. */
gcc_assert
(
is_empty_class
(
TREE_TYPE
(
member
)));
return
true
;
tree
op
=
TREE_OPERAND
(
member
,
0
);
STRIP_NOPS
(
op
);
gcc_assert
(
TREE_CODE
(
op
)
==
ADDR_EXPR
);
op
=
TREE_OPERAND
(
op
,
0
);
if
(
TREE_CODE
(
op
)
==
COMPONENT_REF
)
/* Initializing a cv-qualified member; we just looked through
the const_cast. */
member
=
op
;
else
{
/* Initializing an empty base; just skip it. */
gcc_assert
(
is_empty_class
(
TREE_TYPE
(
member
)));
return
true
;
}
}
}
else
...
...
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