[LLVMbugs] [Bug 10788] New: dejagnu test fails to compile with clang g++.dg/cp00x/initlist25.C
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Aug 26 18:25:26 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10788
Summary: dejagnu test fails to compile with clang
g++.dg/cp00x/initlist25.C
Product: clang
Version: 2.9
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rkotler at mips.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7159)
--> (http://llvm.org/bugs/attachment.cgi?id=7159)
initlist25.C
rkotler at 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
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<char>,
std::basic_string<char> >')
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 at ubuntu-rkotler:~/icpc$
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list