This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Putting C++ code into gcc front end
On Tue, Mar 04, 2003 at 02:19:51PM +0000, Richard Earnshaw wrote:
> Fixing the current c++ compiler so that it can be compiled with any ISO C
> compiler is a completely different level of change from permitting C++
> everywhere.
Sure.
> Just at this point it isn't reasonable to assume that there
> are conforming (even sufficiently conforming) C++ compilers widely
> available on the wide range of hosts that GCC currently supports.
There is gcc 3.2.2.
> Anyway defining a suitable subset of C++ that we could expect is
> 1) hard -- we don't know enough about all the c++ compilers out there.
> 2) impossible to enforce rigorously without modifying the compiler to
> allow us to detect extensions from the subset.
Maybe. Maybe you only really need to care about being able to compile
with gcc from 2 or 3 major versions past, as gnat seems to do.
Is it reasonable in 2003 to have a quite complex compiler written in
K&R C? Not even ISO C?
OG.