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: unassignedclangb...@nondot.org
          Reporter: westion...@gmail.com
                CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to