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: gcc 3.2.1 draft release notes, 3rd draft


I wrote:

> > Can we always tell people to turn
> >
> > typedef T = expression;
> >
> > into
> >
> > typedef typeof(expression) T;
> >
> > ?
> 
> Yes; those two forms should be equivalent, as far as I know.

Then how about adding a rule something like the following to the bison
grammar (yes, I know these are the wrong terminal names, but the idea
should be clear):

       TYPEDEF ID '=' error ';'
	       { error("Please use __typeof() instead");}

However, I don't understand why the extension was removed.  If its
presence makes it harder to parse valid C/C++ the removal might be
justified.


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