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
e056dfd0
Commit
e056dfd0
authored
Jul 14, 2015
by
Jason Merrill
Committed by
Jason Merrill
Jul 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* call.c (build_new_method_call_1): Call reshape_init.
From-SVN: r225784
parent
87679b76
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletions
+20
-1
gcc/cp/ChangeLog
+4
-0
gcc/cp/call.c
+4
-1
gcc/testsuite/g++.dg/cpp0x/initlist-new1.C
+12
-0
No files found.
gcc/cp/ChangeLog
View file @
e056dfd0
2015-07-14 Jason Merrill <jason@redhat.com>
* call.c (build_new_method_call_1): Call reshape_init.
2015-07-14 Paolo Carlini <paolo.carlini@oracle.com>
2015-07-14 Paolo Carlini <paolo.carlini@oracle.com>
* pt.c (check_template_shadow): Emit error + inform instead of
* pt.c (check_template_shadow): Emit error + inform instead of
...
...
gcc/cp/call.c
View file @
e056dfd0
...
@@ -8069,7 +8069,10 @@ build_new_method_call_1 (tree instance, tree fns, vec<tree, va_gc> **args,
...
@@ -8069,7 +8069,10 @@ build_new_method_call_1 (tree instance, tree fns, vec<tree, va_gc> **args,
/* If BASETYPE is an aggregate, we need to do aggregate
/* If BASETYPE is an aggregate, we need to do aggregate
initialization. */
initialization. */
else
if
(
CP_AGGREGATE_TYPE_P
(
basetype
))
else
if
(
CP_AGGREGATE_TYPE_P
(
basetype
))
init
=
digest_init
(
basetype
,
init_list
,
complain
);
{
init
=
reshape_init
(
basetype
,
init_list
,
complain
);
init
=
digest_init
(
basetype
,
init
,
complain
);
}
if
(
init
)
if
(
init
)
{
{
...
...
gcc/testsuite/g++.dg/cpp0x/initlist-new1.C
0 → 100644
View file @
e056dfd0
// { dg-do compile { target c++11 } }
struct
A
{
A
()
=
default
;
A
(
const
A
&
)
=
default
;
};
void
f
()
{
new
A
{
A
()};
}
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