re PR c++/70972 (Inheriting constructors taking parameters by value should move them...
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 23 May 2016 20:50:10 +0000 (20:50 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 23 May 2016 20:50:10 +0000 (20:50 +0000)
commit26d6ae55d88dddc2f2f99d9ac7bf11935307b4ec
tree0b372cc8356ef8c62ff86c557de938fa92ebfe15
parent447caf82a46a3f14ef475897791d11051f2f100c
re PR c++/70972 (Inheriting constructors taking parameters by value should move them, not copy)

/cp
2016-05-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/70972
* method.c (forward_parm): Use cp_build_reference_type.

/testsuite
2016-05-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/70972
* g++.dg/cpp0x/inh-ctor20.C: New.
* g++.dg/cpp0x/inh-ctor21.C: Likewise.

From-SVN: r236614
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/inh-ctor20.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/inh-ctor21.C [new file with mode: 0644]