On Fri, Jun 23, 2017 at 04:48:33PM +0200, Jakub Jelinek wrote:
> On Fri, Jun 23, 2017 at 04:46:06PM +0200, Marek Polacek wrote:
> > +++ gcc/c-family/c-common.c
> > @@ -433,6 +433,8 @@ const struct c_common_resword c_common_reswords[] =
> >    { "__transaction_cancel", RID_TRANSACTION_CANCEL, 0 },
> >    { "__typeof",            RID_TYPEOF,     0 },
> >    { "__typeof__",  RID_TYPEOF,     0 },
> > +  { "__typeof_noqual",     RID_TYPEOF_NOQUAL, 0 },
> > +  { "__typeof_noqual__", RID_TYPEOF_NOQUAL, 0 },
> >    { "__underlying_type", RID_UNDERLYING_TYPE, D_CXXONLY },
> >    { "__volatile",  RID_VOLATILE,   0 },
> >    { "__volatile__",        RID_VOLATILE,   0 },
> > @@ -506,6 +508,7 @@ const struct c_common_resword c_common_reswords[] =
> >    { "typename",            RID_TYPENAME,   D_CXXONLY | D_CXXWARN },
> >    { "typeid",              RID_TYPEID,     D_CXXONLY | D_CXXWARN },
> >    { "typeof",              RID_TYPEOF,     D_ASM | D_EXT },
> > +  { "typeof_noqual",       RID_TYPEOF_NOQUAL, D_ASM | D_EXT },
> 
> Do you think we need this one?  Wouldn't just __typeof_noqual and
> __typeof_noqual__ be sufficient?

Unsure.  At first I didn't add typeof_noqual, but then I saw that our doc
use "typeof" and thought it might be better to be consistent and allow
typeof_noqual without leading underscores.  But in C++ it's only accepted
with -fgnu-keywords.

I could do without it.  Let's see what others think.

        Marek

Reply via email to