This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ (parser) regression?
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>, Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org, <libstdc++ at gcc dot gnu dot org>
- Date: Tue, 13 Aug 2002 15:09:40 +0200 (CEST)
- Subject: Re: C++ (parser) regression?
On 13 Aug 2002, Gabriel Dos Reis wrote:
>| % cat x.cc
>| #include <set>
>|
>| using namespace std;
>|
>| class C : public set<int> {
>| void add(const int i) {
>| insert(i);
>| }
>| };
>|
>| % gccvs x.cc
>| x.cc: In member function `void C::add(int)':
>| x.cc:7: error: no matching function for call to `C::insert(const int&)'
> The above is well-formed. I think the breakage may come from recent
> changes to the way (member) lookup are done. The patch I'm suspecting
> is
>
> 2002-08-07 Mark Mitchell <mark@codesourcery.com>
>
> But I did no test; could you try reverting that patch and see what happens?
Indeed, if I revert gcc/cp/* to Sticky Date: 2002.08.08.03.00.00 this
breakage goes away.
> I think this deserves an etry in the GNATS database.
Well, let's see whether Mark has the time to come up with a quick fix;
else I'll put it into GNATS.
Thanks for the analysis,
Gerald
--
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/