weird template bug

Alexandre Oliva oliva@dcc.unicamp.br
Wed Mar 31 23:54:00 GMT 1999


On Mar 20, 1999, Andreas Kloeckner <ak@ixion.net> wrote:

> egcs-bug.cc:20: ambiguous template specialization `basic_string<>' for
> `basic_string<char,allocator>::basic_string(const char *, const char *)'
> egcs-bug.cc:9: candidates are: template <class charT, class Allocator =
> struct allocator> basic_string<charT,Allocator>::basic_string(const
> charT *, typename Allocator::size_type)
> egcs-bug.cc:13:                 template <class InputIterator>
> basic_string<char,allocator>::basic_string<InputIterator>(InputIterator,
> InputIterator)
> egcs-bug.cc:20: no matching template for
> `basic_string<char,allocator>::basic_string(const char *, const char *)'
> found

thanks for your bug report.  This problem is fixed in the latest
snapshot of egcs.  Unfortunately, I couldn't find any way to work
around the bug in the latest release :-(

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Brazil
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,egcs.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists




More information about the Gcc-bugs mailing list