re PR c++/36816 ([c++0x] error deducing template argument taking the address of rvalu...
authorJason Merrill <jason@redhat.com>
Thu, 8 Oct 2009 16:09:31 +0000 (12:09 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 8 Oct 2009 16:09:31 +0000 (12:09 -0400)
commitf7d5a7cd6bc51675373bcc4ae16a79e77782d510
treec78f263f40e579ba20481d1405a9872356e70d8e
parentccb05613cfd1d37ce6473244e28c56e75d1d0e66
re PR c++/36816 ([c++0x] error deducing template argument taking the address of rvalue reference template)

PR c++/36816
* pt.c (maybe_adjust_types_for_deduction): Do rvalue ref adjustment
even when DEDUCE_EXACT.

From-SVN: r152565
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/rv-deduce.C [new file with mode: 0644]