[LLVMbugs] [Bug 14215] Analyzer failed on clang error: taking the address of a temporary object

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 30 10:16:14 PDT 2012


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

Jordan Rose <jordan_rose at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jordan_rose at apple.com
         Resolution|                            |WONTFIX

--- Comment #1 from Jordan Rose <jordan_rose at apple.com> 2012-10-30 12:16:14 CDT ---
This is a compiler error, and the compiler error is correct. C++11
[expr.unary.op]p3: "The result of the unary & operator is a pointer to its
operand. The operand shall be an lvalue or a qualified-id." A temporary is an
xvalue.

-- 
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