diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2001-08-07 07:51:59 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2001-08-07 07:51:59 -0400 |
commit | 57cf57fbcddc699c279f9298d45be9dcb03d5bcb (patch) | |
tree | 3a8c499c481a4141c044eb2c431e8d45a87faac8 /gcc/cp | |
parent | 45dcf5727c9622aaf3197b8556036f9da97fc1ff (diff) | |
download | gcc-57cf57fbcddc699c279f9298d45be9dcb03d5bcb.zip gcc-57cf57fbcddc699c279f9298d45be9dcb03d5bcb.tar.gz gcc-57cf57fbcddc699c279f9298d45be9dcb03d5bcb.tar.bz2 |
improve comment
From-SVN: r44685
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/decl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 1a34bb9..9ad8b76 100644 --- 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) |