This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Not a direct bug
- To: pfeifer at dbai dot tuwien dot ac dot at (Gerald Pfeifer)
- Subject: Re: Not a direct bug
- From: Joe Buck <jbuck at racerx dot synopsys dot com>
- Date: Fri, 5 Jan 2001 10:42:16 -0800 (PST)
- Cc: axanth at tee dot gr (Stelios Xanthakis), gcc at gcc dot gnu dot org
> On Fri, 5 Jan 2001, Stelios Xanthakis wrote:
> > It does not compile on many people's systems, complaining about
> > "qualifier discards const".
> >
> > I have egcs-1.1.2 compiled from the source on my system.
> > My application compiled without even warnings.
>
> egcs 1.1.2 is quite old. Please install GCC 2.95.2 on your system and try
> with that. There is a good chance that your users already use that newer
> version, and that way you will be able to reproduce the problems.
Historically, old g++ and egcs releases accepted constructs that were not
legal C++ without any warnings (violations of protection of members,
violations of const). We've improved this with time, but it does mean
that if you have an application that has never been compiled with anything
but an old g++ or egcs release, you may now see more warnings or even
errors.
You don't give any source code, but you can probably get past the errors
just by adding casts.