This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/35725] New: ambiguous std::fill with character array
- From: "beckmann dot maik at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Mar 2008 22:33:52 -0000
- Subject: [Bug libstdc++/35725] New: ambiguous std::fill with character array
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This snipped
<code>
#include <string>
#include <vector>
#include <algorithm>
int main() {
std::vector<std::string> foo(20);
std::fill(foo.begin(), foo.end(), "bar");
}
</code>
compiles fine with g++-4.2.3, where 4.3.0 gives the attached error message
(error.log) .
--
Summary: ambiguous std::fill with character array
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: beckmann dot maik at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35725