[llvm-bugs] [Bug 28838] New: can not compile r-value of initializer_list with begin()
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 4 03:15:56 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28838
Bug ID: 28838
Summary: can not compile r-value of initializer_list with
begin()
Product: clang
Version: 3.9
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: westion717 at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
//a.C
#include <initializer_list>
int main()
{
std::initializer_list<int>{3}.begin();
return 0;
}
output
----
a.C:10:29: error: cannot compile this l-value expression yet
std::initializer_list<int>{3}.begin();
^~~
1 error generated.
--
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/20160804/cc466cec/attachment.html>
More information about the llvm-bugs
mailing list