This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Not a direct bug


> 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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]