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
012e6a1e
Commit
012e6a1e
authored
Apr 27, 2010
by
Jason Merrill
Committed by
Jason Merrill
Apr 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* init.c (perform_member_init): Check CLASS_TYPE_P.
From-SVN: r158822
parent
a8ae1977
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
gcc/cp/ChangeLog
+4
-0
gcc/cp/init.c
+5
-3
No files found.
gcc/cp/ChangeLog
View file @
012e6a1e
2010-04-27 Jason Merrill <jason@redhat.com>
* init.c (perform_member_init): Check CLASS_TYPE_P.
2010-04-27 Fabien Chêne <fabien.chene@gmail.com>
PR c++/29043
...
...
gcc/cp/init.c
View file @
012e6a1e
...
...
@@ -518,9 +518,11 @@ perform_member_init (tree member, tree init)
member
,
type
);
core_type
=
strip_array_types
(
type
);
if
(
CLASSTYPE_READONLY_FIELDS_NEED_INIT
(
core_type
)
||
CLASSTYPE_REF_FIELDS_NEED_INIT
(
core_type
))
diagnose_uninitialized_cst_or_ref_member
(
core_type
,
/*using_new=*/
false
);
if
(
CLASS_TYPE_P
(
core_type
)
&&
(
CLASSTYPE_READONLY_FIELDS_NEED_INIT
(
core_type
)
||
CLASSTYPE_REF_FIELDS_NEED_INIT
(
core_type
)))
diagnose_uninitialized_cst_or_ref_member
(
core_type
,
/*using_new=*/
false
);
}
else
if
(
TREE_CODE
(
init
)
==
TREE_LIST
)
/* There was an explicit member initialization. Do some work
...
...
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