This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 3.2.1 draft release notes, 3rd draft
- From: Joe Buck <jbuck at synopsys dot com>
- To: mark at codesourcery dot com (Mark Mitchell)
- Cc: Joe dot Buck at synopsys dot COM (Joe Buck), gcc at gcc dot gnu dot org (gcc at gcc dot gnu dot org)
- Date: Tue, 15 Oct 2002 09:21:18 -0700 (PDT)
- Subject: 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.