This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/1724: Backward compatibility <vector.h> not compilable
- To: gcc-gnats at gcc dot gnu dot org
- Subject: libstdc++/1724: Backward compatibility <vector.h> not compilable
- From: wolfgang dot bangerth at iwr dot uni-heidelberg dot de
- Date: 22 Jan 2001 10:13:09 -0000
- Reply-To: wolfgang dot bangerth at iwr dot uni-heidelberg dot de
>Number: 1724
>Category: libstdc++
>Synopsis: Backward compatibility <vector.h> not compilable
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Mon Jan 22 02:16:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
Linux, gcc CVS from 2001/01/19
>Description:
By chance I typed #include<vector.h> instead of the right
#include<vector>, and got tons of error messages from this snippet:
deal.II/base> cat t.cc
#include <vector.h>
void f(vector<double> &v1) {
vector<double> v2 = v1;
};
deal.II/base> c++ -c t.cc -o /dev/null
/home/people/wolf/Config/gcc-ss-linux/include/g++-v3/bits/concept_checks.h: In
static member function `static _Type
_STL_ERROR::__equality_comparable_requirement_violation(_Type, _Type) [with
_Type = std::__normal_iterator<const double*, std::vector<double,
std::allocator<double> > >]':
[... one page of error messages deleted ...]
Best regards
Wolfgang
>How-To-Repeat:
>Fix:
Either fix vector.h if compatibility is necessary,
or remove it altogether.
>Release-Note:
>Audit-Trail:
>Unformatted: