OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30369af
)
tweak comment in perform_member_init
author
jason
<jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Nov 2011 19:27:17 +0000
(19:27 +0000)
committer
jason
<jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Nov 2011 19:27:17 +0000
(19:27 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181594
138bc75d
-0d04-0410-961f-
82ee72b054a4
gcc/cp/init.c
patch
|
blob
|
history
diff --git
a/gcc/cp/init.c
b/gcc/cp/init.c
index
5c20e32
..
7e9ad54
100644
(file)
--- a/
gcc/cp/init.c
+++ b/
gcc/cp/init.c
@@
-598,7
+598,9
@@
perform_member_init (tree member, tree init)
init = digest_init (type, init, tf_warning_or_error);
if (init == error_mark_node)
return;
- /* Use 'this' as the decl, as it has the lifetime we want. */
+ /* A FIELD_DECL doesn't really have a suitable lifetime, but
+ make_temporary_var_for_ref_to_temp will treat it as automatic and
+ set_up_extended_ref_temp wants to use the decl in a warning. */
init = extend_ref_init_temps (member, init, &cleanups);
if (TREE_CODE (type) == ARRAY_TYPE
&& TYPE_HAS_NONTRIVIAL_DESTRUCTOR (TREE_TYPE (type)))