fixed in lucid (4.4.2-8ubuntu1)

$ g++-4.4 map.cpp -o map -std=c++0x
map.cpp: In function 'int main(int, char**)':
map.cpp:20: warning: deducing '_U2' as 'std::initializer_list<const char*>'
/usr/include/c++/4.4/bits/stl_pair.h:88: warning:   in call to 'std::pair<_T1, 
_T2>::pair(_U1&&, _U2&&) [with _U1 = keyword_t, _U2 = 
std::initializer_list<const char*>, _T1 = const keyword_t, _T2 = 
std::vector<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > >]'
map.cpp:20: warning:   (you can disable this with -fno-deduce-init-list)
map.cpp:20: warning: deducing '_U2' as 'std::initializer_list<const char*>'
/usr/include/c++/4.4/bits/stl_pair.h:88: warning:   in call to 'std::pair<_T1, 
_T2>::pair(_U1&&, _U2&&) [with _U1 = keyword_t, _U2 = 
std::initializer_list<const char*>, _T1 = const keyword_t, _T2 = 
std::vector<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > >]'
map.cpp:20: warning:   (you can disable this with -fno-deduce-init-list)
In file included from /usr/include/c++/4.4/bits/stl_algobase.h:66,
                 from /usr/include/c++/4.4/bits/char_traits.h:41,
                 from /usr/include/c++/4.4/ios:41,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from map.cpp:1:
/usr/include/c++/4.4/bits/stl_pair.h: In constructor 'std::pair<_T1, 
_T2>::pair(_U1&&, _U2&&) [with _U1 = keyword_t, _U2 = 
std::initializer_list<const char*>, _T1 = const keyword_t, _T2 = 
std::vector<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > >]':
map.cpp:20:   instantiated from here
/usr/include/c++/4.4/bits/stl_pair.h:90: error: no matching function for call 
to 'std::vector<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > 
>::vector(std::initializer_list<const char*>)'
/usr/include/c++/4.4/bits/stl_vector.h:271: note: candidates are: 
std::vector<_Tp, _Alloc>::vector(std::initializer_list<_CharT>, const _Alloc&) 
[with _Tp = std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, _Alloc = std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >]
/usr/include/c++/4.4/bits/stl_vector.h:257: note:                 
std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp = 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Alloc 
= std::allocator<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > >]
/usr/include/c++/4.4/bits/stl_vector.h:241: note:                 
std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Alloc 
= std::allocator<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > >]
/usr/include/c++/4.4/bits/stl_vector.h:227: note:                 
std::vector<_Tp, _Alloc>::vector(size_t, const _Tp&, const _Alloc&) [with _Tp = 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Alloc 
= std::allocator<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > >]
/usr/include/c++/4.4/bits/stl_vector.h:215: note:                 
std::vector<_Tp, _Alloc>::vector(const _Alloc&) [with _Tp = 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Alloc 
= std::allocator<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > >]
/usr/include/c++/4.4/bits/stl_vector.h:207: note:                 
std::vector<_Tp, _Alloc>::vector() [with _Tp = std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, _Alloc = 
std::allocator<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > >]


** Changed in: gcc-4.4 (Ubuntu)
       Status: New => Fix Released

-- 
segmentation fault while creating a std::map<**enum type**, std::vector<string> 
> with -std=c++0x
https://bugs.launchpad.net/bugs/499898
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to