This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51547] auto, type deduction, reference collapsing and const: invalid initialization of reference of type 'const X&&' from expression of type 'const X'
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 27 Dec 2011 19:04:28 +0000
- Subject: [Bug c++/51547] auto, type deduction, reference collapsing and const: invalid initialization of reference of type 'const X&&' from expression of type 'const X'
- Auto-submitted: auto-generated
- References: <bug-51547-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51547
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-12-27 19:04:28 UTC ---
Author: paolo
Date: Tue Dec 27 19:04:24 2011
New Revision: 182695
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182695
Log:
2011-12-27 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51547
* g++.dg/cpp0x/pr51547.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/pr51547.C