[llvm-bugs] [Bug 25424] A compound literal does not yield an lvalue
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Nov 5 16:16:12 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25424
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 #2 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Compound literals are not part of C++. Clang allows them as an extension, with
the following semantics:
(T){init}
means the same thing as
T{init}
Thus the compound literal, in this case, a prvalue of type 'const char[7]'.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151106/ff38286d/attachment.html>
More information about the llvm-bugs
mailing list