This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/16505] New: std::uninitialized_fill_n() incorrect signature


The function template std::uninitialized_fill_n() is decleared with
the incorrect signature in the libstdc++ that comes with gcc 3.4.0.

$ cat t.cpp && g++ --version && g++ -c t.cpp
#include <memory>

struct S { };

template
void std::uninitialized_fill_n<S*, int, S>(S*, int, const S&);

g++ (GCC) 3.4.0
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

t.cpp:6: error: template-id `uninitialized_fill_n<S*, int, S>' for `void
std::uninitialized_fill_n(S*, int, const S&)' does not match any template
declaration

-- 
           Summary: std::uninitialized_fill_n() incorrect signature
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sebor at roguewave dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]