method.c (implicitly_declare_fn): Commonize code for copy ctor and assignment op.
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 11 Apr 2001 08:43:16 +0000 (08:43 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 11 Apr 2001 08:43:16 +0000 (08:43 +0000)
commita209577830107724ff2fae5db238623737d8916c
tree507ac15067b624a42002a748e5d7ed9cd9bb53c4
parent45ea80f7101240796d3473c1f5067a6a7398f6ed
method.c (implicitly_declare_fn): Commonize code for copy ctor and assignment op.

cp:
* method.c (implicitly_declare_fn): Commonize code for copy ctor
and assignment op. Set TREE_USED for parameter.
testsuite:
* g++.old-deja/g++.other/warn6.C: New test.

From-SVN: r41243
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/warn6.C [new file with mode: 0644]