This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53223] [c++0x] auto&& and operator* don't mix inside templates
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 03 May 2012 23:57:59 +0000
- Subject: [Bug c++/53223] [c++0x] auto&& and operator* don't mix inside templates
- Auto-submitted: auto-generated
- References: <bug-53223-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53223
--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-03 23:57:59 UTC ---
If we compare lines #12 and #13, there are subtle differences inside
reference_binding (called by initialize_reference, which produces the error):
for line #12, which is accepted, TYPE_REF_IS_RVALUE (rto) is true; for line #13
is false (thus reference_binding early returns NULL, no success)