diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2009-08-19 14:24:13 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2009-08-19 14:24:13 -0400 |
commit | 62906aaa5c38c1740894408ba9fae8b5d41cfb8d (patch) | |
tree | 0f1dbd8b37711fef3b33046a11dce6983f1932db /gcc | |
parent | 595de3023df632cbcdb4e89daf749d3acbcdd748 (diff) | |
download | gcc-62906aaa5c38c1740894408ba9fae8b5d41cfb8d.zip gcc-62906aaa5c38c1740894408ba9fae8b5d41cfb8d.tar.gz gcc-62906aaa5c38c1740894408ba9fae8b5d41cfb8d.tar.bz2 |
tweak comment
From-SVN: r150940
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/decl2.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 225cd9d..9aa8ef1 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -3953,12 +3953,13 @@ mark_used (tree decl) within the body of a function so as to avoid collecting live data on the stack (such as overload resolution candidates). - ??? Now that inlining is done unit-at-a-time, we ought to defer - synthesis like we do templates. */ + We could just let cp_write_global_declarations handle synthesizing + this function, since we just added it to deferred_fns, but doing + it at the use site produces better error messages. */ ++function_depth; synthesize_method (decl); --function_depth; - /* If we've already synthesized the method we don't need to + /* If this is a synthesized method we don't need to do the instantiation test below. */ } else if ((DECL_NON_THUNK_FUNCTION_P (decl) || TREE_CODE (decl) == VAR_DECL) |