Skip to content

dejagnu test fails to compile with clang g++.dg/cp00x/initlist25.C #11160

@llvmbot

Description

@llvmbot
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
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:
/icpc$

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions