[LLVMbugs] [Bug 23852] New: vector of const - push_back fail
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jun 15 13:20:31 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23852
Bug ID: 23852
Summary: vector of const - push_back fail
Product: libc++
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: majestio at ya.ru
CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
Classification: Unclassified
#include <vector>
int main() {
std::vector<const int> v1; // all ok
std::vector<const int> v2 = {1, 2, 3, 4}; // all ok
v1.push_back(17); // error, why?
}
--
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/20150615/b7a82509/attachment.html>
More information about the llvm-bugs
mailing list