public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/35725]  New: ambiguous std::fill with character array
@ 2008-03-27 22:34 beckmann dot maik at googlemail dot com
  2008-03-27 22:36 ` [Bug libstdc++/35725] " beckmann dot maik at googlemail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: beckmann dot maik at googlemail dot com @ 2008-03-27 22:34 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libstdc++/35725] ambiguous std::fill with character array
  2008-03-27 22:34 [Bug libstdc++/35725] New: ambiguous std::fill with character array beckmann dot maik at googlemail dot com
@ 2008-03-27 22:36 ` beckmann dot maik at googlemail dot com
  2008-03-28  0:38 ` pcarlini at suse dot de
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: beckmann dot maik at googlemail dot com @ 2008-03-27 22:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from beckmann dot maik at googlemail dot com  2008-03-27 22:35 -------
Created an attachment (id=15390)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15390&action=view)
error message

error message of g++-4.3.0 when compiling the provided snippet


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35725


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libstdc++/35725] ambiguous std::fill with character array
  2008-03-27 22:34 [Bug libstdc++/35725] New: ambiguous std::fill with character array beckmann dot maik at googlemail dot com
  2008-03-27 22:36 ` [Bug libstdc++/35725] " beckmann dot maik at googlemail dot com
@ 2008-03-28  0:38 ` pcarlini at suse dot de
  2008-03-28  0:48 ` [Bug libstdc++/35725] [4.3/4.4 Regression] " pcarlini at suse dot de
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pcarlini at suse dot de @ 2008-03-28  0:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pcarlini at suse dot de  2008-03-28 00:37 -------
Argh. Easy to fix, will do ASAP.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pcarlini at suse dot de
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-03-28 00:37:52
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35725


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libstdc++/35725] [4.3/4.4 Regression] ambiguous std::fill with character array
  2008-03-27 22:34 [Bug libstdc++/35725] New: ambiguous std::fill with character array beckmann dot maik at googlemail dot com
  2008-03-27 22:36 ` [Bug libstdc++/35725] " beckmann dot maik at googlemail dot com
  2008-03-28  0:38 ` pcarlini at suse dot de
@ 2008-03-28  0:48 ` pcarlini at suse dot de
  2008-03-28  0:49 ` pcarlini at suse dot de
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pcarlini at suse dot de @ 2008-03-28  0:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pcarlini at suse dot de  2008-03-28 00:47 -------
Created an attachment (id=15392)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15392&action=view)
Draft patch

I'm finishing testing something along these lines...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35725


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libstdc++/35725] [4.3/4.4 Regression] ambiguous std::fill with character array
  2008-03-27 22:34 [Bug libstdc++/35725] New: ambiguous std::fill with character array beckmann dot maik at googlemail dot com
                   ` (2 preceding siblings ...)
  2008-03-28  0:48 ` [Bug libstdc++/35725] [4.3/4.4 Regression] " pcarlini at suse dot de
@ 2008-03-28  0:49 ` pcarlini at suse dot de
  2008-03-29 22:39 ` paolo at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pcarlini at suse dot de @ 2008-03-28  0:49 UTC (permalink / raw)
  To: gcc-bugs



-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35725


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libstdc++/35725] [4.3/4.4 Regression] ambiguous std::fill with character array
  2008-03-27 22:34 [Bug libstdc++/35725] New: ambiguous std::fill with character array beckmann dot maik at googlemail dot com
                   ` (4 preceding siblings ...)
  2008-03-29 22:39 ` paolo at gcc dot gnu dot org
@ 2008-03-29 22:39 ` paolo at gcc dot gnu dot org
  2008-03-29 22:44 ` pcarlini at suse dot de
  6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu dot org @ 2008-03-29 22:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo at gcc dot gnu dot org  2008-03-29 22:38 -------
Subject: Bug 35725

Author: paolo
Date: Sat Mar 29 22:38:19 2008
New Revision: 133721

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133721
Log:
2008-03-29  Paolo Carlini  <pcarlini@suse.de>

        PR libstdc++/35725
        * include/bits/stl_algobase.h (__fill_a(_ForwardIterator,
        _ForwardIterator, _Tp), __fill_a(_Tp*, _Tp*, _Tp),
        __fill_n_a(_OutputIterator, _Size, _Tp), __fill_n_a(_Tp*, _Size,
        _Tp)): Fix signatures.
        * testsuite/25_algorithms/fill/35725.cc: New.
        * testsuite/25_algorithms/fill_n/35725.cc: Likewise.

Added:
    trunk/libstdc++-v3/testsuite/25_algorithms/fill/35725.cc
    trunk/libstdc++-v3/testsuite/25_algorithms/fill_n/35725.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_algobase.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35725


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libstdc++/35725] [4.3/4.4 Regression] ambiguous std::fill with character array
  2008-03-27 22:34 [Bug libstdc++/35725] New: ambiguous std::fill with character array beckmann dot maik at googlemail dot com
                   ` (3 preceding siblings ...)
  2008-03-28  0:49 ` pcarlini at suse dot de
@ 2008-03-29 22:39 ` paolo at gcc dot gnu dot org
  2008-03-29 22:39 ` paolo at gcc dot gnu dot org
  2008-03-29 22:44 ` pcarlini at suse dot de
  6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu dot org @ 2008-03-29 22:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from paolo at gcc dot gnu dot org  2008-03-29 22:39 -------
Subject: Bug 35725

Author: paolo
Date: Sat Mar 29 22:38:36 2008
New Revision: 133722

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133722
Log:
2008-03-29  Paolo Carlini  <pcarlini@suse.de>

        PR libstdc++/35725
        * include/bits/stl_algobase.h (__fill_a(_ForwardIterator,
        _ForwardIterator, _Tp), __fill_a(_Tp*, _Tp*, _Tp),
        __fill_n_a(_OutputIterator, _Size, _Tp), __fill_n_a(_Tp*, _Size,
        _Tp)): Fix signatures.
        * testsuite/25_algorithms/fill/35725.cc: New.
        * testsuite/25_algorithms/fill_n/35725.cc: Likewise.

Added:
    branches/gcc-4_3-branch/libstdc++-v3/testsuite/25_algorithms/fill/35725.cc
   
branches/gcc-4_3-branch/libstdc++-v3/testsuite/25_algorithms/fill_n/35725.cc
Modified:
    branches/gcc-4_3-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_3-branch/libstdc++-v3/include/bits/stl_algobase.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35725


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libstdc++/35725] [4.3/4.4 Regression] ambiguous std::fill with character array
  2008-03-27 22:34 [Bug libstdc++/35725] New: ambiguous std::fill with character array beckmann dot maik at googlemail dot com
                   ` (5 preceding siblings ...)
  2008-03-29 22:39 ` paolo at gcc dot gnu dot org
@ 2008-03-29 22:44 ` pcarlini at suse dot de
  6 siblings, 0 replies; 8+ messages in thread
From: pcarlini at suse dot de @ 2008-03-29 22:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pcarlini at suse dot de  2008-03-29 22:43 -------
Fixed.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35725


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-03-29 22:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-27 22:34 [Bug libstdc++/35725] New: ambiguous std::fill with character array beckmann dot maik at googlemail dot com
2008-03-27 22:36 ` [Bug libstdc++/35725] " beckmann dot maik at googlemail dot com
2008-03-28  0:38 ` pcarlini at suse dot de
2008-03-28  0:48 ` [Bug libstdc++/35725] [4.3/4.4 Regression] " pcarlini at suse dot de
2008-03-28  0:49 ` pcarlini at suse dot de
2008-03-29 22:39 ` paolo at gcc dot gnu dot org
2008-03-29 22:39 ` paolo at gcc dot gnu dot org
2008-03-29 22:44 ` pcarlini at suse dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).