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
20888def
Commit
20888def
authored
Jul 09, 2011
by
Jason Merrill
Committed by
Jason Merrill
Jul 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree.c (build_vec_init_elt): Strip TARGET_EXPR.
From-SVN: r176084
parent
5b696ba2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
0 deletions
+29
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/tree.c
+5
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/cpp0x/regress/regress5.C
+16
-0
No files found.
gcc/cp/ChangeLog
View file @
20888def
2011-07-09 Jason Merrill <jason@redhat.com>
* tree.c (build_vec_init_elt): Strip TARGET_EXPR.
2011-07-08 Jason Merrill <jason@redhat.com>
PR c++/45437
...
...
gcc/cp/tree.c
View file @
20888def
...
...
@@ -511,6 +511,11 @@ build_vec_init_elt (tree type, tree init, tsubst_flags_t complain)
complain
);
release_tree_vector
(
argvec
);
/* For a trivial constructor, build_over_call creates a TARGET_EXPR. But
we don't want one here because we aren't creating a temporary. */
if
(
TREE_CODE
(
init
)
==
TARGET_EXPR
)
init
=
TARGET_EXPR_INITIAL
(
init
);
return
init
;
}
...
...
gcc/testsuite/ChangeLog
View file @
20888def
2011-07-09 Jason Merrill <jason@redhat.com>
* g++.dg/cpp0x/regress/regress5.C: New.
2011-07-08 Jason Merrill <jason@redhat.com>
PR c++/45437
...
...
gcc/testsuite/g++.dg/cpp0x/regress/regress5.C
0 → 100644
View file @
20888def
// { dg-options -std=c++0x }
struct
A
{
int
i
;
A
(
int
);
};
struct
B
{
virtual
void
f
();
A
ar
[
3
];
};
extern
B
b
;
B
b2
(
b
);
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