aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-10-04 14:06:41 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-10-04 14:06:41 +0000
commitbed8a1e4d6234e7bb1199eaf8f72b9007dc47034 (patch)
treee3c23d94b0f10f880a2c38850253ee01d4cb6fea /gcc/cp/call.c
parent6069fe72870e410c08570e94ce2b141c6bc88219 (diff)
downloadgcc-bed8a1e4d6234e7bb1199eaf8f72b9007dc47034.zip
gcc-bed8a1e4d6234e7bb1199eaf8f72b9007dc47034.tar.gz
gcc-bed8a1e4d6234e7bb1199eaf8f72b9007dc47034.tar.bz2
call.c (convert_arg_to_ellipsis): Correct comment about passing by reference.
* call.c (convert_arg_to_ellipsis): Correct comment about passing by reference. From-SVN: r253410
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 05dc8bb..bfd9288 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -7178,8 +7178,9 @@ convert_arg_to_ellipsis (tree arg, tsubst_flags_t complain)
with no corresponding parameter is conditionally-supported, with
implementation-defined semantics.
- We support it as pass-by-invisible-reference, just like a normal
- value parameter.
+ We support it as pass-by-invisible-reference to the caller's
+ object. That's different to named by-value parameters, which
+ construct a copy and pass a reference to that.
If the call appears in the context of a sizeof expression,
it is not potentially-evaluated. */