libstdc++/1953: C++: ambigous overload compile failure

carlo@alinoe.com carlo@alinoe.com
Mon Feb 12 12:06:00 GMT 2001


>Number:         1953
>Category:       libstdc++
>Synopsis:       C++: ambigous overload compile failure
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 12 12:05:59 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     carlo@alinoe.com
>Release:        gcc version 2.97 20010207
>Organization:
>Environment:
Linux 2.4.0-test10
>Description:
vector<> is completely unusable.  I checked the database
and found that this bug was already reported before as
stdc++/1675, but still unassigned and with priority medium.
I'd like to increase that priority to high.
>How-To-Repeat:
An example of a program that fails is:

#include <vector>
#include <algo.h>
 
void foo(void)
{
  std::vector<int> v;
  v.push_back(3);
}

Note that including algo.h is not needed for this
program, but needed for the bug to show up.
>Fix:
There is no way to workaround this when the vector is
declared in another template.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list