-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Description
| Bugzilla Link | 10788 |
| Resolution | LATER |
| Resolved on | Aug 26, 2011 20:34 |
| Version | 2.9 |
| OS | Linux |
| Attachments | initlist25.C |
| Reporter | LLVM Bugzilla Contributor |
| CC | @efriedma-quic |
Extended Description
rkotler@ubuntu-rkotler:/icpc$ /home/rkotler/build_llvm/install/bin/clang++ -std=c++0x /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/initlist25.C/icpc$
In file included from /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/initlist25.C:5:
In file included from /usr/include/c++/4.4/map:59:
In file included from /usr/include/c++/4.4/bits/stl_tree.h:63:
In file included from /usr/include/c++/4.4/bits/allocator.h:48:
In file included from /usr/include/c++/4.4/x86_64-linux-gnu/bits/c++allocator.h:34:
In file included from /usr/include/c++/4.4/ext/new_allocator.h:33:
In file included from /usr/include/c++/4.4/new:40:
In file included from /usr/include/c++/4.4/exception:148:
/usr/include/c++/4.4/exception_ptr.h:143:13: error: unknown type name
'type_info'
const type_info*
^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/initlist25.C:14:11: error:
no matching member function for call to 'insert'
m.insert({{"t", "t"}, {"y", "y"}});
~~^~~~~~
/usr/include/c++/4.4/bits/stl_map.h:499:7: note: candidate function not
viable: cannot convert argument of incomplete type 'void' to
'const value_type' (aka 'const pair<const std::basic_string,
std::basic_string >')
insert(const value_type& __x)
^
/usr/include/c++/4.4/bits/stl_map.h:511:7: note: candidate function not
viable: cannot convert argument of incomplete type 'void' to
'std::initializer_list<value_type>'
insert(std::initializer_list<value_type> __list)
^
/usr/include/c++/4.4/bits/stl_map.h:552:9: note: candidate function
template not viable: requires 2 arguments, but 1 was provided
insert(_InputIterator __first, _InputIterator __last)
^
/usr/include/c++/4.4/bits/stl_map.h:539:7: note: candidate function not
viable: requires 2 arguments, but 1 was provided
insert(iterator __position, const value_type& __x)
^
2 errors generated.
rkotler@ubuntu-rkotler: