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:
341eded
)
improve comment
author
jason
<jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Aug 2001 11:51:59 +0000
(11:51 +0000)
committer
jason
<jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Aug 2001 11:51:59 +0000
(11:51 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44685
138bc75d
-0d04-0410-961f-
82ee72b054a4
gcc/cp/decl.c
patch
|
blob
|
history
diff --git
a/gcc/cp/decl.c
b/gcc/cp/decl.c
index
1a34bb9
..
9ad8b76
100644
(file)
--- a/
gcc/cp/decl.c
+++ b/
gcc/cp/decl.c
@@
-8033,7
+8033,9
@@
cp_finish_decl (decl, init, asmspec_tree, flags)
GNU_xref_decl (current_function_decl, decl);
- /* Add this declaration to the statement-tree. */
+ /* Add this declaration to the statement-tree. This needs to happen
+ after the call to check_initializer so that the DECL_STMT for a
+ reference temp is added before the DECL_STMT for the reference itself. */
if (building_stmt_tree ()
&& at_function_scope_p ()
&& TREE_CODE (decl) != RESULT_DECL)