re PR c++/49105 ([C++0x][SFINAE] ICE during list-initialization of rvalue-references...
authorJason Merrill <jason@redhat.com>
Mon, 23 May 2011 22:56:04 +0000 (18:56 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 23 May 2011 22:56:04 +0000 (18:56 -0400)
commit8e3fb544446fca2bcdc68618b36cd3d3b2cf46c5
treee6d0568b16b8369d69bd5a477aa47f3ab6a06469
parent66d83eeea9a150217ce3e5ed4fd30aff8a063716
re PR c++/49105 ([C++0x][SFINAE] ICE during list-initialization of rvalue-references to const)

PR c++/49105
* typeck.c (cp_build_c_cast): Don't strip cv-quals when
converting to reference.
(build_static_cast_1): Update for glvalues.

From-SVN: r174093
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/sfinae25.C [new file with mode: 0644]