call.c (convert_arg_to_ellipsis): Correct comment about passing by reference.
authorNathan Sidwell <nathan@acm.org>
Wed, 4 Oct 2017 14:06:41 +0000 (14:06 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 4 Oct 2017 14:06:41 +0000 (14:06 +0000)
* call.c (convert_arg_to_ellipsis): Correct comment about passing
by reference.

From-SVN: r253410

gcc/cp/ChangeLog
gcc/cp/call.c

index cd0433c66cd3c35ee3ddc94f120f3c222140ec6d..0d20ea5d1fa0cb8db35fdbf492b788f7d82a3606 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-04  Nathan Sidwell  <nathan@acm.org>
+
+       * call.c (convert_arg_to_ellipsis): Correct comment about passing
+       by reference.
+
 2017-10-02  Richard Sandiford  <richard.sandiford@linaro.org>
 
        * constexpr.c (cxx_eval_store_expression): Use wi::to_widest
index 05dc8bbdab7d42760290892d9cc57c224109632d..bfd928823937106d03a17922d4d8e9e6f189e044 100644 (file)
@@ -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.  */