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: Idea about Documenting and Compiling egcs in C++.


On Sun, Apr 25, 1999 at 08:37:05PM +0200, Martin v. Loewis wrote:
> > C++ has stronger type checking, which may catch latent bugs.
> 
> I agree that this is a potential advantage. However, it doesn't
> outweigh the disadvantage of requiring a C++ compiler to bootstrap the
> C++ compiler. This is the same problem as GNAT: It may be cleaner to
> write an Ada compiler in Ada, but it also makes the resulting Ada
> compiler less useful, because of the bootstrapping problem.

The reference to lint meant not that G++ should be converted to C++,
just that it may be useful to compile it with a C++ compiler from time
to time, to apply strong type checking (=abusing G++ as a lint)

Looking at the loads of warnings a normal gcc bootstrap produces even 
in C it is probably a non trivial project though.

-Andi

P.S.: If you're looking for other free C++ parsers Tendra C++ may be a good
choice though, although it is writen in C (but not in a "lispy" style
like gcc)

-- 
This is like TV. I don't like TV.


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