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]
Other format: [Raw text]

Re: Putting C++ code into gcc front end


> On Tue, Mar 04, 2003 at 01:13:39PM +0100, Gabriel Dos Reis wrote:
> > I have no idea of how many GNU extensions there are.  Your question is
> > probably one of the most important ones to answer. 
> 
> Or, the other way around, what about requiring a system C++ compiler
> and start using C++[1] in all the front and back ends where useful ?
> 
>   OG.
> 
> [1] Maybe not all of C++ immediatly, of course.

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

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.


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