This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49105] [C++0x][SFINAE] ICE during list-initialization of rvalue-references to const
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 23 May 2011 23:16:58 +0000
- Subject: [Bug c++/49105] [C++0x][SFINAE] ICE during list-initialization of rvalue-references to const
- Auto-submitted: auto-generated
- References: <bug-49105-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49105
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-23 22:56:08 UTC ---
Author: jason
Date: Mon May 23 22:56:04 2011
New Revision: 174093
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174093
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/sfinae25.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog