aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>1998-05-11 11:46:11 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1998-05-11 11:46:11 +0000
commit4c7d0dff68bc86c6af9a030655ea901a4219ec1e (patch)
treeedd396559ec084940ba8fda1df53abb809c78b7e /gcc
parent08362e16df6d5a2e4d54f91730acbc5aaa7e4137 (diff)
downloadgcc-4c7d0dff68bc86c6af9a030655ea901a4219ec1e.zip
gcc-4c7d0dff68bc86c6af9a030655ea901a4219ec1e.tar.gz
gcc-4c7d0dff68bc86c6af9a030655ea901a4219ec1e.tar.bz2
update documentation
From-SVN: r19671
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/pt.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 9eb5b3f..d6764b0 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -5708,11 +5708,10 @@ type_unification (tparms, targs, parms, args, targs_in,
/* Adjust types before performing type deduction, as described in
[temp.deduct.call] and [temp.deduct.conv]. The rules in these two
- sections are symmetric. For calls, the value passed as PARM should
- be a parameter to the template function, while ARG should be the
- actual argument used in the call. For conversions, PARM should be
- the type required as the result of the conversion, while ARG should
- be the return type of the template conversion function. */
+ sections are symmetric. PARM is the type of a function parameter
+ or the return type of the conversion function. ARG is the type of
+ the argument passed to the call, or the type of the value
+ intialized with the result of the conversion function. */
void
maybe_adjust_types_for_deduction (strict, parm, arg)
@@ -5727,8 +5726,9 @@ maybe_adjust_types_for_deduction (strict, parm, arg)
case DEDUCE_CONV:
{
- /* Swap PARM and ARG; the handling is precisely symmetric since
- PARM will initialize ARG rather than vice versa. */
+ /* Swap PARM and ARG throughout the remainder of this
+ function; the handling is precisely symmetric since PARM
+ will initialize ARG rather than vice versa. */
tree* temp = parm;
parm = arg;
arg = temp;