| Summary: | [C++11] void return value in std::vector<T>::insert() c++11 should be an iterator | ||
|---|---|---|---|
| Product: | gcc | Reporter: | Jobst.Ziebell |
| Component: | libstdc++ | Assignee: | Not yet assigned to anyone <unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | daniel.kruegler |
| Priority: | P3 | ||
| Version: | 4.7.1 | ||
| Target Milestone: | 4.9.0 | ||
| Host: | Target: | ||
| Build: | Known to work: | ||
| Known to fail: | Last reconfirmed: | 2013-01-08 00:00:00 | |
| Attachments: |
Preprocessed file as created by -save-temps
The testcase |
||
|
Description
Jobst.Ziebell
2012-12-27 16:31:28 UTC
Created attachment 29055 [details]
The testcase
The same problem seems to exist for gcc 4.8.0 20121209 and for the signatures void insert(iterator __position, initializer_list<value_type> __l) (should be: iterator insert(iterator __position, initializer_list<value_type> __l) ) void insert(iterator __position, size_type __n, const value_type& __x) (should be: iterator insert(iterator __position, size_type __n, const value_type& __x) ) template<typename _InputIterator, typename = std::_RequireInputIter<_InputIterator>> void insert(iterator __position, _InputIterator __first, _InputIterator __last) (should be: template<typename _InputIterator, typename = std::_RequireInputIter<_InputIterator>> iterator insert(iterator __position, _InputIterator __first, _InputIterator __last) ) Known issue, there's probably an existing for it PR somewhere. This seems to be fixed in GCC 4.9.0 |