[LLVMbugs] [Bug 13311] [C++11] cannot return rvalue reference to function type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 9 16:19:08 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13311

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|                            |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-07-09 18:19:08 CDT ---
Rvalue references to functions are allowed, but expressions of function type
are always lvalues. See, for instance:

[expr.call]p10: A function call is an lvalue if the result type is an lvalue
reference type or an rvalue reference to function type.

[expr.static.cast]p1: The result of the expression static_cast<T>(v) is the
result of converting the expression v to type T. If T is an lvalue reference
type or an rvalue reference to function type, the result is an lvalue.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list