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
6864d849
Commit
6864d849
authored
Apr 17, 2017
by
Jason Merrill
Committed by
Jason Merrill
Apr 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (tsubst_init): Set TARGET_EXPR_DIRECT_INIT_P.
From-SVN: r246953
parent
4e64ba00
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/pt.c
+2
-0
gcc/testsuite/g++.dg/cpp0x/variadic-init2.C
+20
-0
No files found.
gcc/cp/ChangeLog
View file @
6864d849
2017-04-17 Jason Merrill <jason@redhat.com>
* pt.c (tsubst_init): Set TARGET_EXPR_DIRECT_INIT_P.
2017-04-15 Alexandre Oliva <aoliva@redhat.com>
* decl.c (name_unnamed_type): Split out of...
...
...
gcc/cp/pt.c
View file @
6864d849
...
...
@@ -14413,6 +14413,8 @@ tsubst_init (tree init, tree decl, tree args,
complain
);
if
(
TREE_CODE
(
init
)
==
AGGR_INIT_EXPR
)
init
=
get_target_expr_sfinae
(
init
,
complain
);
if
(
TREE_CODE
(
init
)
==
TARGET_EXPR
)
TARGET_EXPR_DIRECT_INIT_P
(
init
)
=
true
;
}
return
init
;
...
...
gcc/testsuite/g++.dg/cpp0x/variadic-init2.C
0 → 100644
View file @
6864d849
// { dg-do compile { target c++11 } }
struct
MoveOnly
{
MoveOnly
()
=
default
;
MoveOnly
(
MoveOnly
const
&
)
=
delete
;
MoveOnly
(
MoveOnly
&&
)
=
default
;
};
struct
StoresMoveOnly
{
StoresMoveOnly
()
{}
~
StoresMoveOnly
()
=
default
;
MoveOnly
value
;
};
template
<
class
...
Args
>
void
test
(
Args
...
args
)
{
StoresMoveOnly
s
(
args
...);
}
int
main
()
{
test
();
}
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