This is the mail archive of the
mailing list for the libstdc++ project.
Re: Minor bug gets bigger? (was Re: Potential minor bu revealed?)
- From: Phil Edwards <phil at jaj dot com>
- To: Gabriel Dos Reis <gdr at codesourcery dot com>
- Cc: "Stephen M. Webb" <stephen dot webb at bregmasoft dot com>, libstdc++ at gcc dot gnu dot org
- Date: Fri, 10 May 2002 11:53:50 -0400
- Subject: Re: Minor bug gets bigger? (was Re: Potential minor bu revealed?)
- References: <200205071918.g47JImu08482@disaster.jaj.com> <20020508140113.A16763@disaster.basement.lan> <email@example.com>
On Wed, May 08, 2002 at 10:46:57PM +0200, Gabriel Dos Reis wrote:
> Phil Edwards <firstname.lastname@example.org> writes:
> | Now, if I also include <vector>, then the weird error appears. This makes
> | sense to me and my limited understanding of template function overloading:
> | the compiler never instantiates the template form of std::swap, since it
> | already sees a non-template function.
> Does that non-template function really realize a better match?
Well, I wouldn't think so. But it is the only non-template swap() available.
> Along with your patch, it would be interesting to trace the path that
> leads to that obscure bug.
I wish cc1plus had an option like make's -d, where it printed out the
decisions it was making as it went along.
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams