This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
C++ and useful error messages
- To: <gcc at gcc dot gnu dot org>, <libstdc++ at gcc dot gnu dot org>
- Subject: C++ and useful error messages
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Tue, 19 Dec 2000 10:05:52 +0100 (CET)
I predict that after the release of GCC 3.0 we will see an avalanche of
bug reports/complaints that g++ fails for the most simple kind of input:
#include <vector>
class C {
vector<int> vi;
};
% gccvs x.cc
x.cc:3: syntax error before `;' token
Yes, this program is not ISO C++, but still this kind of failure mode
is hardly acceptable, IMNSHO.
(I noticed that the libstdc++ folks do provide a backwards-compatibility
mode when one includes <vector.h>, not <vector>. Excellent idea!)
Gerald
--
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/